Module: Onsengame::Scene::Base
Instance Method Summary collapse
Instance Method Details
#button_down(id) ⇒ Object
20 21 |
# File 'lib/onsengame/scene/base.rb', line 20 def (id) end |
#draw ⇒ Object
16 17 18 |
# File 'lib/onsengame/scene/base.rb', line 16 def draw @objects.each {|object| object.draw } end |
#initialize(window) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/onsengame/scene/base.rb', line 4 def initialize(window) @window = window @font_path = File.join(@window.[:font_dir], "PressStart2P.ttf") @objects = [] @figures = [] end |
#update ⇒ Object
12 13 14 |
# File 'lib/onsengame/scene/base.rb', line 12 def update @objects.each {|object| object.update } end |