Method: Health#draw
- Defined in:
- lib/entities/components/health.rb
#draw(viewport) ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/entities/components/health.rb', line 49 def draw() return unless draw? @image && @image.draw( x - @image.width / 2, y - object.graphics.height / 2 - @image.height, 100) end |