Class: Yuki::Animation::MoveSpritePosition
- Inherits:
-
ScalarAnimation
- Object
- TimedAnimation
- ScalarAnimation
- Yuki::Animation::MoveSpritePosition
- Defined in:
- docs/4_Systems_005_Animation.rb
Overview
Animation resposive of positinning a sprite between two other sprites
Instance Attribute Summary
Attributes inherited from TimedAnimation
#begin_time, #end_time, #parallel_animations, #root, #sub_animation, #time_source
Instance Method Summary collapse
-
#initialize(time_to_process, on, a, b, distortion: :UNICITY_DISTORTION, time_source: :GENERIC_TIME_SOURCE) ⇒ MoveSpritePosition
constructor
Create a new ScalarAnimation convert it to another number (between 0 & 1) in order to distord time.
-
#start(begin_offset = 0)
Start the animation (initialize it).
-
#update_internal(time_factor)
Method you should always overwrite in order to perform the right animation.
Methods inherited from TimedAnimation
#done?, #in_parallel_of, #parallel_add, #play_before, #resolver=, #update
Constructor Details
#initialize(time_to_process, on, a, b, distortion: :UNICITY_DISTORTION, time_source: :GENERIC_TIME_SOURCE) ⇒ MoveSpritePosition
Create a new ScalarAnimation convert it to another number (between 0 & 1) in order to distord time
555 556 |
# File 'docs/4_Systems_005_Animation.rb', line 555 def initialize(time_to_process, on, a, b, distortion: :UNICITY_DISTORTION, time_source: :GENERIC_TIME_SOURCE) end |
Instance Method Details
#start(begin_offset = 0)
Start the animation (initialize it)
559 560 |
# File 'docs/4_Systems_005_Animation.rb', line 559 def start(begin_offset = 0) end |
#update_internal(time_factor)
Method you should always overwrite in order to perform the right animation
563 564 |
# File 'docs/4_Systems_005_Animation.rb', line 563 def update_internal(time_factor) end |