Class: ShapeJ
Overview
- ][
Instance Attribute Summary
Attributes inherited from Shape
#blocks, #falling, #rotation, #x, #y
Instance Method Summary collapse
Methods inherited from ShapeL
Methods inherited from Shape
#collides?, #collides_with_blocks?, #collides_with_walls?, #draw, #falling?, #initialize, #maximum_x_block, #maximum_y_block, #minimum_x_block, #rotate, #shape_to_array, #translate_by_y, #update, #update_move_x, #update_move_y
Constructor Details
This class inherits a constructor from ShapeL
Instance Method Details
#get_blocks ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/shapeJ.rb', line 8 def get_blocks old_rotation = @rotation @rotation = 0 super translate_by_y @rotation = old_rotation rotate @blocks end |