Skip to content

Commit

Permalink
GUI now doesn't crash the game after the ending
Browse files Browse the repository at this point in the history
  • Loading branch information
fortwoone committed Nov 27, 2023
1 parent 1b4b1b9 commit 97f690b
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,11 @@ def update_evt(self):
self.game.showing_gui = True
self.game.showing_title = True
game_crash.stop()
self.game.gui.add(gui.Button((52, 90), "Online", self.game.start))
self.game.gui.add(
gui.Button((107, 80), "Private", self.game.start_private)
)
self.game.gui.add(gui.Button((80, 110), "Reset", self.game.del_cache))
self.game.gui.add(gui.Button((80, 130), "Exit Game", self.game.quit))
self.game.gui.add(
gui.EmojiButton((148, 10), "♬", self.game.sound_on_off)
)
self.game.gui.add(gui.Button((80, 90), "Run", self.start),
# gui.Button((107, 90), "Private", self.start_private),
# gui.Button((80, 110), "Reset", self.del_cache),
gui.Button((80, 130), "Exit Game", self.quit),
gui.EmojiButton((148, 10), "♬", self.sound_on_off))
self.game.level = 5
# self.game.client.stop()

Expand Down

0 comments on commit 97f690b

Please sign in to comment.