diff --git a/i-mic-rts.rb b/i-mic-rts.rb index fc2343e..6366872 100644 --- a/i-mic-rts.rb +++ b/i-mic-rts.rb @@ -12,9 +12,9 @@ require_relative "lib/states/main_menu" class Window < CyberarmEngine::Engine def setup self.caption = "I-MIC RTS (#{Gosu.language})" - push_state(Boot) + push_state(MainMenu) end end -# Window.new(Gosu.screen_width, Gosu.screen_height, true).show -Window.new(Gosu.screen_width, Gosu.screen_height, false).show \ No newline at end of file +Window.new(Gosu.screen_width, Gosu.screen_height, true).show +# Window.new(Gosu.screen_width, Gosu.screen_height, false).show \ No newline at end of file diff --git a/lib/states/boot.rb b/lib/states/boot.rb index 3077824..3a08fad 100644 --- a/lib/states/boot.rb +++ b/lib/states/boot.rb @@ -1,5 +1,7 @@ class Boot < CyberarmEngine::GameState def setup + self.show_cursor = false + @title = Gosu::Font.new(56, name: "Noto Sans Display", bold: true) @text = Gosu::Font.new(18, name: "Noto Sans Thaana", bold: true) @name = "I-MIC RTS" @@ -29,6 +31,10 @@ class Boot < CyberarmEngine::GameState @background = Gosu::Color.new(0x007a0d71) @background_two = Gosu::Color.new(0x007b6ead) + + $window.width = Gosu.screen_width + $window.height = Gosu.screen_height + $window.fullscreen = true end def draw diff --git a/lib/states/main_menu.rb b/lib/states/main_menu.rb index 9f80ddf..29b4862 100644 --- a/lib/states/main_menu.rb +++ b/lib/states/main_menu.rb @@ -10,7 +10,7 @@ class MainMenu < CyberarmEngine::GameState # background 0xff00aa00 stack do - # background 0xffaa0000 + background 0xffaaeedd # fill Gosu::Color::BLACK button("Play") button("About") @@ -39,6 +39,8 @@ class MainMenu < CyberarmEngine::GameState puts "Logging in... #{@username.value}:#{Base64.encode64(@password.value)}" end button "Sign Up" + + check_box checked: true end end end @@ -46,5 +48,6 @@ class MainMenu < CyberarmEngine::GameState $window.width = @root_container.children.first.width.to_i $window.height = @root_container.children.first.height.to_i + $window.fullscreen = false end end \ No newline at end of file