Class: PowerupGraphics
- Defined in:
- lib/entities/components/powerup_graphics.rb
Instance Attribute Summary
Attributes inherited from Component
Instance Method Summary collapse
- #draw(viewport) ⇒ Object
-
#initialize(object, type) ⇒ PowerupGraphics
constructor
A new instance of PowerupGraphics.
Methods inherited from Component
Constructor Details
#initialize(object, type) ⇒ PowerupGraphics
Returns a new instance of PowerupGraphics.
2 3 4 5 |
# File 'lib/entities/components/powerup_graphics.rb', line 2 def initialize(object, type) super(object) @type = type end |
Instance Method Details
#draw(viewport) ⇒ Object
7 8 9 10 |
# File 'lib/entities/components/powerup_graphics.rb', line 7 def draw() image.draw(x - 12, y - 12, 1) Utils.mark_corners(object.box) if $debug end |