add level selector and support for multiple levels, fix high score not updating

This commit is contained in:
csd4ni3l
2025-11-29 12:37:55 +01:00
parent 1d51aa0952
commit 9b80dba667
6 changed files with 71 additions and 32 deletions

View File

@@ -21,4 +21,4 @@ player_duck_animation = animation_from([os.path.join(_assets_dir, 'graphics', 'K
background_sound = arcade.Sound(os.path.join(_assets_dir, "sound", "background.mp3"))
freeze_sound = arcade.Sound(os.path.join(_assets_dir, "sound", "freeze.wav"))
tile_map = arcade.load_tilemap(os.path.join(_assets_dir, "map.tmx"))
tilemaps = [arcade.load_tilemap(os.path.join(_assets_dir, "levels", tilemap)) for tilemap in os.listdir(os.path.join(_assets_dir, "levels"))]