diff options
author | quou <quou@disroot.org> | 2024-10-02 21:23:04 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-10-02 21:24:37 +1000 |
commit | 8d2ba1419c060078c0aeeb33ef4e84da482b78f5 (patch) | |
tree | 1148ecab21daf9e02062896689b965402aafb6a4 /obj.h | |
parent | 52d93d98018c47cb9f8d9271e4ded8ab96b7bfbd (diff) |
particle effects
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; |