Class: Yuki::Animation::SpriteSheetAnimation
- Inherits:
-
TimedAnimation
- Object
- TimedAnimation
- Yuki::Animation::SpriteSheetAnimation
- Defined in:
- docs/4_Systems_005_Animation.rb
Overview
Class that describe a SpriteSheet animation
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, cells, rounding = :round, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) ⇒ SpriteSheetAnimation
constructor
Create a new ScalarAnimation convert it to another number (between 0 & 1) in order to distord time.
-
#start(begin_offset = 0) ⇒ self
Start the animation (initialize it).
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, cells, rounding = :round, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) ⇒ SpriteSheetAnimation
Create a new ScalarAnimation convert it to another number (between 0 & 1) in order to distord time
548 549 |
# File 'docs/4_Systems_005_Animation.rb', line 548 def initialize(time_to_process, on, cells, rounding = :round, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) end |
Instance Method Details
#start(begin_offset = 0) ⇒ self
Start the animation (initialize it)
553 554 |
# File 'docs/4_Systems_005_Animation.rb', line 553 def start(begin_offset = 0) end |