aboutsummaryrefslogtreecommitdiff
path: root/world.h
blob: bd3df31d9e3ebd0a8cbea000279105a3904d931b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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