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
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