R-Type 0.1
Loading...
Searching...
No Matches
component::animationClip Struct Reference

Sprite sheet frames played for one animation state. More...

#include <components/Animator.hpp>

Public Attributes

uint16_t startX {0}
 X of the first frame in the sheet.
 
uint16_t startY {0}
 Y of the first frame in the sheet.
 
uint16_t totalFrames {1}
 Number of frames.
 
float frameDuration {0.1f}
 Time per frame, in seconds.
 
bool loop {true}
 Restarts after the last frame.
 
bool reverse {false}
 Plays the frames backwards.
 
uint16_t frameWidth {0}
 Frame width, 0 keeps the current one.
 
uint16_t frameHeight {0}
 Frame height, 0 keeps the current one.
 

Detailed Description

Sprite sheet frames played for one animation state.