From a51ca5dbe3bcc8ab9159baf061648f3a1e7aa50d Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 19 Nov 2020 01:32:52 +0100 Subject: [PATCH] Menu key handler moved --- dungeonbattle/game.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dungeonbattle/game.py b/dungeonbattle/game.py index 45c0115..dcd6a59 100644 --- a/dungeonbattle/game.py +++ b/dungeonbattle/game.py @@ -102,6 +102,10 @@ class Game: if key == KeyValues.ENTER: option = self.main_menu.validate() if option == menus.MainMenuValues.START: + self.new_game() + self.display_actions(DisplayActions.UPDATE) + self.state = GameMode.PLAY + if option == menus.MainMenuValues.RESUME: self.state = GameMode.PLAY elif option == menus.MainMenuValues.SAVE: self.save_game()