crystal-tower/inc/anim.h

20 lines
395 B
C
Raw Normal View History

2021-11-10 14:05:00 +01:00
#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 *);