Files
i-mic-fps/lib/ui/menus/main_menu.rb

16 lines
355 B
Ruby

class IMICFPS
class MainMenu < Menu
def setup
title "I-MIC FPS"
link "Single Player" do
push_state(LoadingState.new(forward: Game, map_file: GAME_ROOT_PATH + "/maps/test_map.json"))
end
link "Settings" do
push_state(SettingsMenu)
end
link "Exit" do
window.close
end
end
end
end