From 9add408984464bd6b3cc018bb14c3d69ad0a2898 Mon Sep 17 00:00:00 2001 From: quou Date: Tue, 8 Oct 2024 19:56:08 +1100 Subject: New flying enemy that drops arrows --- world.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'world.h') diff --git a/world.h b/world.h index 81feb6f..a0f6506 100644 --- a/world.h +++ b/world.h @@ -4,10 +4,11 @@ #include "map.h" #include "obj.h" -#define max_particles 32 +#define max_particles 16 #define max_enemies 16 #define max_deathzones 16 #define max_effects 16 +#define max_projectiles 16 struct Renderer; @@ -16,8 +17,9 @@ typedef struct World { Enemy enemies[max_enemies]; Deathzone deathzones[max_deathzones]; Effect effects[max_effects]; + Projectile projectiles[max_projectiles]; int particle_count, enemy_count, effect_count; - int deathzone_count; + int deathzone_count, projectile_count; Player player; Laser laser; Map map; @@ -55,6 +57,13 @@ Effect* inst_effect( int vy, int c ); +Projectile* inst_projectile( + World* w, + int x, + int y, + const Rect* r, + int anim +); void update_world(World* w, const struct App* a); void ren_world(const World* w, struct Renderer* r); -- cgit v1.2.3-54-g00ecf