Method: Core::Game::MapAnimation#initialize
- Defined in:
- lib/game/map/map_animation.rb
#initialize(anim, x, y) ⇒ MapAnimation
Returns a new instance of MapAnimation.
6 7 8 9 10 |
# 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 |