Class: Brick
- Inherits:
-
GameObject
- Object
- GameObject
- Brick
- Defined in:
- lib/entities/brick.rb
Overview
class Brick
Instance Attribute Summary
Attributes inherited from GameObject
Instance Method Summary collapse
- #hitted(_obj) ⇒ Object
-
#initialize(x, y) ⇒ Brick
constructor
A new instance of Brick.
- #update ⇒ Object
Methods inherited from GameObject
#collide?, #collision_detect, #done?, #draw, #solid?
Constructor Details
Instance Method Details
#hitted(_obj) ⇒ Object
10 11 12 |
# File 'lib/entities/brick.rb', line 10 def hitted(_obj) @done = true end |
#update ⇒ Object
14 15 16 |
# File 'lib/entities/brick.rb', line 14 def update @sprite.update end |