mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-05-09 04:11:55 -05:00
17 lines
621 B
C
17 lines
621 B
C
#ifndef POKEPLATINUM_SPRITE_ANIMATION_DATA_H
|
|
#define POKEPLATINUM_SPRITE_ANIMATION_DATA_H
|
|
|
|
#define MAX_ANIMATION_FRAMES 10
|
|
|
|
/**
|
|
* @brief By-frame data definition for animating a sprite.
|
|
*/
|
|
typedef struct SpriteAnimFrame {
|
|
s8 spriteFrame; ///< Which frame of the sprite to use for this frame of the animation.
|
|
u8 frameDelay; ///< How long this animation frame should last.
|
|
s8 xOffset; ///< Horizontal shift to apply to the sprite for this animation frame.
|
|
s8 yOffset; ///< Vertical shift to apply to the sprite for this animation frame.
|
|
} SpriteAnimFrame;
|
|
|
|
#endif // POKEPLATINUM_SPRITE_ANIMATION_DATA_H
|