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

@@ -0,0 +1,23 @@
class IMICFPS
class GamePauseMenu < Menu
def setup
title "I-MIC FPS"
subtitle "Paused"
link "Resume" do
pop_state
end
link "Disconnect" do
push_state(MainMenu)
end
end
def draw
previous_state.draw
Gosu.flush
super
end
end
end

View File

@@ -6,7 +6,7 @@ class IMICFPS
push_state(LoadingState.new(forward: Game, map_file: GAME_ROOT_PATH + "/maps/test_map.json"))
end
link "Settings" do
# push_game_state(SettingsMenu)
push_state(SettingsMenu)
end
link "Exit" do
window.close

View File

@@ -0,0 +1,14 @@
class IMICFPS
class SettingsMenu < Menu
def setup
title "I-MIC FPS"
subtitle "Settings"
link "\"There is no spoon.\""
link "Back" do
pop_state
end
end
end
end