Class: Yuki::Animation::RadiusMoveAnimation
- Inherits:
-
TimedAnimation
- Object
- TimedAnimation
- Yuki::Animation::RadiusMoveAnimation
- Defined in:
- docs/4_Systems_005_Animation.rb
Overview
Animation responsive of moving a sprite between a 2 point, one from a sprite defined by a distance
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from TimedAnimation
#begin_time, #end_time, #time_source
Attributes included from Yuki::AnimationMixin
Instance Method Summary collapse
-
#initialize(time_to_process, on, a, b, reversed: false, max_radius: 360, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) ⇒ RadiusMoveAnimation
constructor
Create a new RadiusMoveAnimation convert it to another number (between 0 & 1) in order to distort time.
-
#start(begin_offset = 0) ⇒ self
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?, #duration, #parallel_add, #play_before, #update
Methods included from Yuki::AnimationMixin
#begin_offset_for_next_animation, #done?, #duration, #update
Constructor Details
#initialize(time_to_process, on, a, b, reversed: false, max_radius: 360, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) ⇒ RadiusMoveAnimation
Create a new RadiusMoveAnimation convert it to another number (between 0 & 1) in order to distort time
975 976 |
# File 'docs/4_Systems_005_Animation.rb', line 975 def initialize(time_to_process, on, a, b, reversed: false, max_radius: 360, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) end |
Instance Method Details
#start(begin_offset = 0) ⇒ self
Start the animation (initialize it)
980 981 |
# File 'docs/4_Systems_005_Animation.rb', line 980 def start(begin_offset = 0) end |
#update_internal(time_factor)
Method you should always overwrite in order to perform the right animation
984 985 |
# File 'docs/4_Systems_005_Animation.rb', line 984 def update_internal(time_factor) end |