diff --git a/i-mic-rts.rb b/i-mic-rts.rb index d3d5a18..f0cc01d 100644 --- a/i-mic-rts.rb +++ b/i-mic-rts.rb @@ -14,4 +14,4 @@ class Window < CyberarmEngine::Engine end end -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 \ No newline at end of file diff --git a/lib/states/boot.rb b/lib/states/boot.rb index 6f69bae..23c0699 100644 --- a/lib/states/boot.rb +++ b/lib/states/boot.rb @@ -15,7 +15,7 @@ class Boot < CyberarmEngine::GameState @background = Gosu::Color.new(0x007a0d71) @background_two = Gosu::Color.new(0x007b6ead) - @boot_life = 5_000 + @boot_life = 5#_000 @boot_started = Gosu.milliseconds end diff --git a/lib/states/main_menu.rb b/lib/states/main_menu.rb index 0b3abbd..e3a0b9f 100644 --- a/lib/states/main_menu.rb +++ b/lib/states/main_menu.rb @@ -1,23 +1,31 @@ -class MainMenu < CyberarmEngine::Container +class MainMenu < CyberarmEngine::GameState def setup - show_cursor = true - set_layout_y(10, 20) + self.show_cursor = true - flow(width: $window.width, padding: 10, margin: 10) do - image("assets/logo_small.png") - text "Main Menu", align: "center", size: 30 - end + stack do + background 0xff7a0d71 + flow(padding: 10, margin: 10) do + background 0xff00ff00 + # image("assets/logo_small.png") + label "I-MIC RTS", text_size: 30 + label "Main Menu", text_size: 30 + end - stack(width: 250) do - button("Play") - button("About") - button("Exit") do - close + stack do + background Gosu::Color::RED + + label "I-MIC RTS", text_size: 10 + + button("Play") + button("About") + button("Exit") do + $window.close + end + + check_box do |check| + puts "Hello World: #{check.value}" + end end end end - - def draw - fill(Gosu::Color.new(0xff7a0d71)) - end end \ No newline at end of file