Module: Metro::HasAnimations::ClassMethods
- Defined in:
- lib/metro/animation/has_animations.rb
Instance Method Summary collapse
-
#animate(actor_name, options, &block) ⇒ Object
(also: #change)
Define an animation to execute when the scene starts.
-
#animations ⇒ Object
All the animations that are defined for the scene to be run the scene starts.
Instance Method Details
#animate(actor_name, options, &block) ⇒ Object Also known as: change
Define an animation to execute when the scene starts.
52 53 54 55 |
# File 'lib/metro/animation/has_animations.rb', line 52 def animate(actor_name,,&block) scene_animation = AnimationFactory.new actor_name, , &block animations.push scene_animation end |
#animations ⇒ Object
All the animations that are defined for the scene to be run the scene starts.
63 64 65 |
# File 'lib/metro/animation/has_animations.rb', line 63 def animations @animations ||= [] end |