mirror of
https://github.com/csd4ni3l/ember-keeper.git
synced 2026-01-01 04:23:43 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user