module Onsengame::Scene::Base

Public Class Methods

new(window) click to toggle source
# 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

Public Instance Methods

button_down(id) click to toggle source
# File lib/onsengame/scene/base.rb, line 20
def button_down(id)
end
draw() click to toggle source
# File lib/onsengame/scene/base.rb, line 16
def draw
  @objects.each {|object| object.draw }
end
update() click to toggle source
# File lib/onsengame/scene/base.rb, line 12
def update
  @objects.each {|object| object.update }
end