Module: Rhythmmml::Scene::Base
Instance Method Summary collapse
Instance Method Details
#button_down(id) ⇒ Object
30 31 |
# File 'lib/rhythmmml/scene.rb', line 30 def (id) end |
#draw ⇒ Object
25 26 27 28 |
# File 'lib/rhythmmml/scene.rb', line 25 def draw @objects.each {|object| object.draw } @figures.each {|figure| figure.draw } end |
#initialize(window) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/rhythmmml/scene.rb', line 13 def initialize(window) @window = window @font_path = File.join(@window.[:font_dir], "PressStart2P.ttf") @objects = [] @figures = [] end |
#update ⇒ Object
21 22 23 |
# File 'lib/rhythmmml/scene.rb', line 21 def update @objects.each {|object| object.update } end |