Method: Core::Game::MapAnimation#draw

Defined in:
lib/game/map/map_animation.rb

#draw(xoff, yoff) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/game/map/map_animation.rb', line 15

def draw(xoff, yoff)
  @anim.x = @x + xoff
  @anim.y = @y + yoff
  @anim.draw
  if @anim.remove?
    @dead = true
  end
end