#include <sprite.h>
Data Fields | |
| int | current_frame |
| The currently displayed frame (index) of this animation. | |
| int | delay |
| The delay between switching frames in milliseconds. | |
| int | frame_count |
| The number of frames in this animation. | |
| cc_sprite_anim_frame_t * | frames |
| The list of animation frames. | |
| uint32 | last_update |
| The last time this animation was updated (milliseconds since start). | |
| int | loop_frame |
| The index of the frame to go to after displaying the last frame of the animation. | |
This class provides to the sprite code the ability to have animations. This struct consists primarily of a list of frames to display.
The currently displayed frame (index) of this animation.
The delay between switching frames in milliseconds.
The number of frames in this animation.
The list of animation frames.
This array contains all of the frames that this animation contains in order.
The last time this animation was updated (milliseconds since start).
The index of the frame to go to after displaying the last frame of the animation.