aboutsummaryrefslogtreecommitdiff
path: root/map.h
blob: 79f558709f38571499b93c6a623cde7e0000294f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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);
void get_map_bitmap(Map* map, Bitmap* bitmap);

#endif