aboutsummaryrefslogtreecommitdiff
path: root/src/map.h
blob: 138abcd6a0f9a93c24a2ec9e66c7148cb92a0ee9 (plain)
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
30
#ifndef _MAP_H
#define _MAP_H

#define MAP_TILE_W 8
#define MAP_TILE_H 8

#define MAP_W 40
#define MAP_H 23

#define MAP_OFFS_Y 16

#define MAP_TILESET_COLS 20

#define MAP_FIRST_BLOCKED 40
#define MAP_FIRST_DEADLY 100

void map_init(const uint8_t map[]);
void map_render();

uint8_t map_is_blocked(uint16_t x, uint16_t y);
uint8_t map_is_deadly(uint16_t x, uint16_t y);

uint8_t map_update_gold(uint16_t x, uint16_t y);

void map_open_goldkey();
void map_open_silverkey();

uint8_t map_is_complete();

#endif /* _MAP_H */