Add pause menu, template map, level 2, fix level selection, increase warmth, moving x and y platforms, respawn trees after reset, fix constant restarting lagging the game, add bg color effect after warmth levels decrease

This commit is contained in:
csd4ni3l
2025-11-30 18:26:52 +01:00
parent 8965644761
commit b5cec4382d
7 changed files with 435 additions and 22 deletions

View File

@@ -16,7 +16,7 @@ REPLAY_DELAY = 1 / 20
LEFT_RIGHT_DIAGONAL_ID = 6
RIGHT_LEFT_DIAGONAL_ID = 7
AVAILABLE_LEVELS = 1
AVAILABLE_LEVELS = 2
menu_background_color = (30, 30, 47)
log_dir = 'logs'

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"))
tilemaps = [arcade.load_tilemap(os.path.join(_assets_dir, "levels", tilemap)) for tilemap in os.listdir(os.path.join(_assets_dir, "levels"))]
tilemaps = {int(tilemap.split(".tmx")[0]): arcade.load_tilemap(os.path.join(_assets_dir, "levels", tilemap)) for tilemap in os.listdir(os.path.join(_assets_dir, "levels")) if tilemap.split(".tmx")[0].isnumeric()}