Class: Onsengame::Scene::Main

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/onsengame/scene/main.rb

Instance Method Summary collapse

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 button_down(id)
  case id
  when Gosu::KbQ
    @window.scenes.shift
  end
end

#drawObject



19
20
21
# File 'lib/onsengame/scene/main.rb', line 19

def draw
  super
end

#updateObject



15
16
17
# File 'lib/onsengame/scene/main.rb', line 15

def update
  super
end