aboutsummaryrefslogtreecommitdiff
path: root/obj.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-10-02 21:23:04 +1000
committerquou <quou@disroot.org>2024-10-02 21:24:37 +1000
commit8d2ba1419c060078c0aeeb33ef4e84da482b78f5 (patch)
tree1148ecab21daf9e02062896689b965402aafb6a4 /obj.h
parent52d93d98018c47cb9f8d9271e4ded8ab96b7bfbd (diff)
particle effects
Diffstat (limited to 'obj.h')
-rw-r--r--obj.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/obj.h b/obj.h
index ad7098c..f29d5a4 100644
--- a/obj.h
+++ b/obj.h
@@ -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;