mirror of https://git.sr.ht/~kikoodx/crystal-tower
20 lines
395 B
C
20 lines
395 B
C
|
#pragma once
|
||
|
#include "vec.h"
|
||
|
#include <gint/display.h>
|
||
|
|
||
|
struct Anim {
|
||
|
bopti_image_t *texture;
|
||
|
struct Vec pos;
|
||
|
struct Vec frame_dim;
|
||
|
int frame_duration;
|
||
|
int frame;
|
||
|
int life_ini;
|
||
|
int life;
|
||
|
int loop;
|
||
|
};
|
||
|
|
||
|
struct Anim anim_new(bopti_image_t *, int x, int y, int frame_width,
|
||
|
int frame_duration, int loop);
|
||
|
void anim_update(struct Anim *);
|
||
|
void anim_draw(struct Anim *);
|