aboutsummaryrefslogtreecommitdiff
path: root/obj.h
diff options
context:
space:
mode:
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;