Menu key handler moved
This commit is contained in:
parent
80ae824ed8
commit
a51ca5dbe3
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user