class Rhythmmml::Game
Attributes
mml[R]
options[R]
scenes[R]
Public Class Methods
new(mml, options={})
click to toggle source
Calls superclass method
# File lib/rhythmmml/game.rb, line 9 def initialize(mml, options={}) super(640, 480, false) self.caption = "Rhythmmml" @mml = mml @options = options @options[:font_dir] ||= File.expand_path("../../../data/fonts", __FILE__) @scenes = [] @scenes << Scene::Title.new(self) end
Public Instance Methods
draw()
click to toggle source
# File lib/rhythmmml/game.rb, line 23 def draw current_scene.draw end
update()
click to toggle source
# File lib/rhythmmml/game.rb, line 19 def update current_scene.update end
Private Instance Methods
current_scene()
click to toggle source
# File lib/rhythmmml/game.rb, line 37 def current_scene @scenes[0] end