Added more menus; stub for settings, basic pause menu, fixes for multiple Game inits

This commit is contained in:
2020-01-28 19:59:42 -06:00
parent c25df59819
commit 46cffa293e
10 changed files with 83 additions and 21 deletions

View File

@@ -50,7 +50,6 @@ class IMICFPS
@demo.update if @demo
window.close if window.button_down?(Gosu::KbEscape)
window.number_of_vertices = 0
end
@@ -86,6 +85,11 @@ eos
end
def button_down(id)
if id == Gosu::KB_ESCAPE
push_state(GamePauseMenu)
return
end
@demo.button_down(id) if @demo
InputMapper.keydown(id)