diff options
Diffstat (limited to 'obj.h')
-rw-r--r-- | obj.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -65,6 +65,19 @@ void init_particle(Particle* p, int x, int y, int anim, int bmp); int update_particle(Particle* p); void ren_particle(const Particle* p, struct Renderer* r); +#define effect_max 32 +typedef struct { + int x[effect_max]; + int y[effect_max]; + int vx[effect_max]; + int vy[effect_max]; + int c, life; +} Effect; + +void init_effect(Effect* e, int x, int y, int vx, int vy, int c); +int update_effect(Effect* e); +void ren_effect(const Effect* e, struct Renderer* r); + typedef enum { enemy_demon } Enemy_Type; |