blob: f36d2946cda8cb242b76a73592d9338300428a05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#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);
#endif /* _MAP_H */
|