Artjoms Daškevičs 2026-02-11 09:47:13 +02:00
parent 22833dc2d3
commit d03079d292
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -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):