4 enum { DIR_N, DIR_E, DIR_S, DIR_W };
6 enum { CELL_SOLID, CELL_OPEN };
7 #define CELL_WALK 0x0100
11 unsigned int wallflags[4];
20 struct level_cell *cells;
22 struct level_span *hspans, *vspans; /* dynamic array */
25 void init_level(struct level *lvl);
26 void destroy_level(struct level *lvl);
28 int load_level(struct level *lvl, const char *fname);