Class: Triangle

Inherits:
Player show all
Defined in:
lib/player.rb

Instance Attribute Summary

Attributes inherited from Player

#color, #x, #y

Instance Method Summary collapse

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