Class: Onsengame::Scene::Main
- Inherits:
-
Object
- Object
- Onsengame::Scene::Main
- Includes:
- Base
- Defined in:
- lib/onsengame/scene/main.rb
Instance Method Summary collapse
- #button_down(id) ⇒ Object
- #draw ⇒ Object
-
#initialize(window) ⇒ Main
constructor
A new instance of Main.
- #update ⇒ Object
Constructor Details
#initialize(window) ⇒ Main
Returns a new instance of Main.
11 12 13 |
# File 'lib/onsengame/scene/main.rb', line 11 def initialize(window) super end |
Instance Method Details
#button_down(id) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/onsengame/scene/main.rb', line 23 def (id) case id when Gosu::KbQ @window.scenes.shift end end |
#draw ⇒ Object
19 20 21 |
# File 'lib/onsengame/scene/main.rb', line 19 def draw super end |
#update ⇒ Object
15 16 17 |
# File 'lib/onsengame/scene/main.rb', line 15 def update super end |