Module: Rhythmmml::Scene::Base

Included in:
Main, Title
Defined in:
lib/rhythmmml/scene.rb

Instance Method Summary collapse

Instance Method Details

#button_down(id) ⇒ Object



30
31
# File 'lib/rhythmmml/scene.rb', line 30

def button_down(id)
end

#drawObject



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.options[:font_dir],
                         "PressStart2P.ttf")
  @objects = []
  @figures = []
end

#updateObject



21
22
23
# File 'lib/rhythmmml/scene.rb', line 21

def update
  @objects.each {|object| object.update }
end