class Rhythmmml::Object::Info
Attributes
score[RW]
Public Class Methods
new(window, x, y, options={})
click to toggle source
Calls superclass method
Rhythmmml::Object::Base::new
# File lib/rhythmmml/object.rb, line 65 def initialize(window, x, y, options={}) super @score = 0 end
Public Instance Methods
draw()
click to toggle source
# File lib/rhythmmml/object.rb, line 70 def draw @font.draw("SCORE:", @x, @y, @z_order) @font.draw("%08d" % @score, @x, @y + @font_size, @z_order) end