aboutsummaryrefslogtreecommitdiff
path: root/map.h
blob: 5b791959005ed30cf1f8886c586ac0e8883f4f30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef map_h
#define map_h

#include "game_config.h"
#include "render.h"

struct World;

typedef struct {
	Colour pixels[
		map_width *
		map_tile_size *
		map_height *
		map_tile_size
	];
} Map;

void init_map(Map* map, struct World* world);
void render_map(Map* map, int cx, int cy);

#endif