class Core::Game::MapAnimation
Public Class Methods
new(anim, x, y)
click to toggle source
Calls superclass method
# File lib/game/map/map_animation.rb, line 6 def initialize(anim, x, y) super(x, y, {}) @anim = Core.anim(anim) @anim.play(x, y, @z) end
Public Instance Methods
draw(xoff, yoff)
click to toggle source
# 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
update()
click to toggle source
# File lib/game/map/map_animation.rb, line 12 def update end