aboutsummaryrefslogtreecommitdiff
path: root/world.h
diff options
context:
space:
mode:
Diffstat (limited to 'world.h')
-rw-r--r--world.h13
1 files changed, 11 insertions, 2 deletions
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);