Class: BulletGraphics

Inherits:
Component show all
Defined in:
lib/entities/components/bullet_graphics.rb

Instance Attribute Summary

Attributes inherited from Component

#object

Instance Method Summary collapse

Methods inherited from Component

#initialize, #update

Constructor Details

This class inherits a constructor from Component

Instance Method Details

#draw(viewport) ⇒ Object



2
3
4
5
# File 'lib/entities/components/bullet_graphics.rb', line 2

def draw(viewport)
  image.draw(x - 8, y - 8, 1)
  Utils.mark_corners(object.box) if $debug
end