Add statistics, per level high score and tries

This commit is contained in:
csd4ni3l
2025-11-29 15:38:01 +01:00
parent 9b80dba667
commit 879167822e
3 changed files with 70 additions and 4 deletions

View File

@@ -55,9 +55,16 @@ class Main(arcade.gui.UIView):
self.play_button = self.box.add(arcade.gui.UITextureButton(text="Play", texture=button_texture, texture_hovered=button_hovered_texture, width=self.window.width / 2, height=self.window.height / 10, style=big_button_style))
self.play_button.on_click = lambda event: self.play()
self.statistics_button = self.box.add(arcade.gui.UITextureButton(text="Statistics", texture=button_texture, texture_hovered=button_hovered_texture, width=self.window.width / 2, height=self.window.height / 10, style=big_button_style))
self.statistics_button.on_click = lambda event: self.statistics()
self.settings_button = self.box.add(arcade.gui.UITextureButton(text="Settings", texture=button_texture, texture_hovered=button_hovered_texture, width=self.window.width / 2, height=self.window.height / 10, style=big_button_style))
self.settings_button.on_click = lambda event: self.settings()
def statistics(self):
from menus.statistics import Statistics
self.window.show_view(Statistics(self.pypresence_client))
def play(self):
from menus.level_selector import LevelSelector
self.window.show_view(LevelSelector(self.pypresence_client))