aboutsummaryrefslogtreecommitdiff
path: root/src/map.h
blob: 992c9828d3f8b1c9fab5ab1aab0a8759a861f05b (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
#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

typedef enum
{
    Player = 0,
} EntityType;

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);
uint8_t map_is_complete();

#endif /* _MAP_H */