]> Shamusworld >> Repos - legend/blob - src/data.h
Initial commit for the Legend of A... project!
[legend] / src / data.h
1 #ifndef __DATA_H__
2 #define __DATA_H__
3
4 #include <stdint.h>
5
6 // Struct for casting
7 struct Map
8 {
9         int width;
10         int height;
11         uint16_t n, s, e, w, special;
12         unsigned char tiles[];
13 };
14
15 #define NUMBER_OF_MAPS  1
16 extern const void * maps[];
17
18 #define NUMBER_OF_ROOMS 1
19 extern const void * rooms[];
20
21 // Globals
22 extern uint8_t roomState[];
23 extern uint16_t roomWidth, roomHeight;
24
25 extern Map * mapSave, * currentMap;
26 extern uint16_t pxSave, pySave;
27
28 #endif  // __DATA_H__
29