Class: Triangle
Instance Attribute Summary
Attributes inherited from Player
Instance Method Summary collapse
-
#initialize(x, y) ⇒ Triangle
constructor
A new instance of Triangle.
Methods inherited from Player
#height, #is_brick, #rotate, #rotate_rollback, #width
Constructor Details
#initialize(x, y) ⇒ Triangle
Returns a new instance of Triangle.
37 38 39 40 41 42 |
# File 'lib/player.rb', line 37 def initialize(x, y) super(x, y) @color = Gosu::Color::BLUE @data = [[0, 1, 0], [1, 1, 1]] end |