mirror of
https://git.planet-casio.com/Slyvtt/Collab_RPG.git
synced 2025-01-04 07:53:39 +01:00
28 lines
614 B
C
28 lines
614 B
C
|
#ifndef ANIMATION_H
|
||
|
#define ANIMATION_H
|
||
|
|
||
|
#include "config.h"
|
||
|
|
||
|
typedef struct {
|
||
|
unsigned char frame;
|
||
|
bopti_image_t *image;
|
||
|
unsigned char len;
|
||
|
unsigned short frame_ms;
|
||
|
int current_ms;
|
||
|
unsigned short width;
|
||
|
unsigned short height;
|
||
|
unsigned short wrap_dest;
|
||
|
} Animation;
|
||
|
|
||
|
/* TODO: Doc! */
|
||
|
void animation_new(Animation *animation, bopti_image_t *image,
|
||
|
unsigned char len, unsigned short frame_ms);
|
||
|
|
||
|
/* TODO: Doc! */
|
||
|
void animation_draw(Animation *animation, int x, int y);
|
||
|
|
||
|
/* TODO: Doc! */
|
||
|
void animation_update(Animation *animation, unsigned short frame_ms);
|
||
|
|
||
|
#endif
|