aboutsummaryrefslogtreecommitdiff
path: root/world.h
diff options
context:
space:
mode:
Diffstat (limited to 'world.h')
-rw-r--r--world.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/world.h b/world.h
new file mode 100644
index 0000000..bd3df31
--- /dev/null
+++ b/world.h
@@ -0,0 +1,29 @@
+#ifndef world_h
+#define world_h
+
+#include "map.h"
+#include "obj.h"
+
+#define max_particles 32
+
+struct Renderer;
+
+typedef struct World {
+ Particle particles[max_particles];
+ int particle_count;
+ Player player;
+ Map map;
+} World;
+
+void init_world(World* w);
+Particle* inst_particle(
+ World* w,
+ int x,
+ int y,
+ int anim,
+ int bmp
+);
+void update_world(World* w, const App* a);
+void ren_world(const World* w, struct Renderer* r);
+
+#endif