diff options
author | quou <quou@disroot.org> | 2024-10-08 19:56:08 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-10-08 19:56:08 +1100 |
commit | 9add408984464bd6b3cc018bb14c3d69ad0a2898 (patch) | |
tree | dde2af5525fd076d03c5c8e14067a4502aa1051e /world.h | |
parent | b5c69695c9c97c09f7ffa4d5a600d88cc06ee6da (diff) |
New flying enemy that drops arrows
Diffstat (limited to 'world.h')
-rw-r--r-- | world.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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); |