DungeonCrawl
Loading...
Searching...
No Matches
map.h
Go to the documentation of this file.
1
5
#ifndef MAP_H
6
#define MAP_H
7
8
#define WIDTH 39
// must be odd
9
#define HEIGHT 19
// must be odd
10
11
#define ENEMY_COUNT 8
12
#define ENEMY_MIN_DISTANCE 3
13
14
#define TOP 0
15
#define BOTTOM 1
16
#define LEFT 2
17
#define RIGHT 3
18
19
#include "
../common.h
"
20
21
typedef
enum
{
22
WALL = 0,
23
FLOOR = 1,
24
START_DOOR = 2,
25
EXIT_DOOR = 3,
26
KEY = 4,
27
LIFE_FOUNTAIN = 5,
28
MANA_FOUNTAIN = 6,
29
GOBLIN = 20,
30
HIDDEN = 99
31
} map_tile_t;
32
33
extern
vector2d_t
directions[4];
34
35
//map array
36
extern
map_tile_t map[WIDTH][HEIGHT];
37
extern
map_tile_t revealed_map[WIDTH][HEIGHT];
38
39
#endif
//MAP_H
common.h
Defines common macros, types, and global variables for color schemes and utilities.
vector2d_t
2-dimensional vector struct
Definition
common.h:164
src
map
map.h
Generated by
1.14.0