blob: 9f5a06a5bd7b4c3a0f1f7dc9a738263b262fc8c5 (
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
31
32
33
|
#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();
/* for gold */
void map_erase();
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 */
|