Class: Yuki::Animation::SpriteCreationCommand
- Inherits:
-
Command
- Object
- TimedAnimation
- Command
- Yuki::Animation::SpriteCreationCommand
- Defined in:
- docs/4_Systems_005_Animation.rb
Overview
Animation command responsive of creating sprites and storing them inside the resolver
Example :
SpriteCreationCommand.new(:main, :star1, SpriteSheet, [1, 3], [:select, 0, 1], [:set_position, 160, 120])
# This will create a spritesheet at the coordinate 160, 120 and display the cell 0,1
Instance Attribute Summary
Attributes inherited from TimedAnimation
#begin_time, #end_time, #parallel_animations, #root, #sub_animation, #time_source
Instance Method Summary collapse
-
#initialize(viewport, name, type, args, *properties) ⇒ SpriteCreationCommand
constructor
Create a new SpriteCreationCommand.
Methods inherited from Command
Methods inherited from TimedAnimation
#done?, #in_parallel_of, #parallel_add, #play_before, #resolver=, #start, #update
Constructor Details
#initialize(viewport, name, type, args, *properties) ⇒ SpriteCreationCommand
Create a new SpriteCreationCommand
451 452 |
# File 'docs/4_Systems_005_Animation.rb', line 451 def initialize(, name, type, args, *properties) end |