From 7664fdafb9a6d6f4aa3339fe38958b24b234218e Mon Sep 17 00:00:00 2001 From: quou Date: Mon, 30 Sep 2024 19:01:53 +1000 Subject: player slashing --- world.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 world.h (limited to 'world.h') 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 -- cgit v1.2.3-54-g00ecf