diff options
Diffstat (limited to 'world.h')
-rw-r--r-- | world.h | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -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 |