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

@@ -20,7 +20,7 @@ class LevelSelector(arcade.gui.UIView):
for n in range(AVAILABLE_LEVELS):
button = self.box.add(arcade.gui.UITextureButton(text=f"Level {n + 1}", width=self.window.width / 2, height=self.window.height / 10, texture=button_texture, texture_hovered=button_hovered_texture, style=button_style))
button.on_click = lambda event, n=n: self.play_level(n)
button.on_click = lambda event, n=n: self.play_level(n + 1)
def play_level(self, n):
from game.play import Game