Module: Onsengame::Scene::Base

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

Instance Method Summary collapse

Instance Method Details

#button_down(id) ⇒ Object



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

def button_down(id)
end

#drawObject



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

#updateObject



12
13
14
# File 'lib/onsengame/scene/base.rb', line 12

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