aboutsummaryrefslogtreecommitdiff
path: root/world.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-09-30 19:01:53 +1000
committerquou <quou@disroot.org>2024-09-30 19:01:53 +1000
commit7664fdafb9a6d6f4aa3339fe38958b24b234218e (patch)
treea1b1879403eab088aee66c091e476d407fe35402 /world.h
parent98322a86ec78f732a5a6750a1e93061269cc76a7 (diff)
player slashing
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