Class: Square
Instance Attribute Summary
Attributes inherited from Player
Instance Method Summary collapse
-
#initialize(x, y) ⇒ Square
constructor
A new instance of Square.
Methods inherited from Player
#height, #is_brick, #rotate, #rotate_rollback, #width
Constructor Details
#initialize(x, y) ⇒ Square
Returns a new instance of Square.
47 48 49 50 51 52 |
# File 'lib/player.rb', line 47 def initialize(x, y) super(x, y) @color = Gosu::Color::RED @data = [[1, 1], [1, 1]] end |