module Rhythmmml::Scene::Base

Public Class Methods

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

Public Instance Methods

button_down(id) click to toggle source
# File lib/rhythmmml/scene.rb, line 30
def button_down(id)
end
draw() click to toggle source
# File lib/rhythmmml/scene.rb, line 25
def draw
  @objects.each {|object| object.draw }
  @figures.each {|figure| figure.draw }
end
update() click to toggle source
# File lib/rhythmmml/scene.rb, line 21
def update
  @objects.each {|object| object.update }
end