diff --git a/maguro-game/maguro-game.py b/maguro-game/maguro-game.py index b616616..b49e6ec 100644 --- a/maguro-game/maguro-game.py +++ b/maguro-game/maguro-game.py @@ -19,6 +19,9 @@ WIDTH, HEIGHT = info.current_w, info.current_h pygame.display.set_caption("Cat Catcher") clock = pygame.time.Clock() +wallpaper = pygame.image.load("wallpaper.jpg").convert() +wallpaper = pygame.transform.scale(wallpaper, (WIDTH, HEIGHT)) + CAT_SIZE = [160, 160] SUSHI_SIZE = (50, 50) CLOUD_SIZE = (200, 120) @@ -178,7 +181,7 @@ last_spawn = pygame.time.get_ticks() while True: dt = clock.tick(60) - screen.fill((135, 206, 235)) + screen.blit(wallpaper, (0, 0)) keys = pygame.key.get_pressed() move = 0 @@ -336,4 +339,3 @@ while True: draw_centered_multiline_text([f"Final Score: {score}", "Game Over!"], color=(255, 0, 0)) pygame.display.flip() - diff --git a/maguro-game/wallpaper.jpg b/maguro-game/wallpaper.jpg index 5dd8e9e..59670eb 100644 Binary files a/maguro-game/wallpaper.jpg and b/maguro-game/wallpaper.jpg differ