main
parent
22833dc2d3
commit
d03079d292
Binary file not shown.
3
main.py
3
main.py
|
|
@ -14,6 +14,7 @@ jumping = False
|
|||
STANDING_SURFACE = pygame.transform.scale(pygame.image.load("images/character1.png"), (48, 64))
|
||||
JUMPING_SURFACE = pygame.transform.scale(pygame.image.load("images/character2.png"), (48, 64))
|
||||
BACKGROUND = pygame.image.load("images/back.png")
|
||||
BACKGROUND_MAIN = pygame.image.load("images/back_main")
|
||||
|
||||
crest = STANDING_SURFACE.get_rect(center = (X_POS, Y_POS))
|
||||
|
||||
|
|
@ -36,7 +37,7 @@ while True:
|
|||
jumping = True
|
||||
SCREEN.blit(wall_image, wall_right)
|
||||
SCREEN.blit(wall_image, wall_left)
|
||||
SCREEN.blit(BACKGROUND, (0, 0))
|
||||
SCREEN.blit(BACKGROUND_MAIN, (0, 0))
|
||||
SCREEN.blit(door_image, door_rect)
|
||||
|
||||
if crest.colliderect(wall_right):
|
||||
|
|
|
|||
Loading…
Reference in New Issue