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];
17 unsigned char dbgcol[4];
23 struct level_cell *cells;
26 struct level_rect *rects; /* darr, empty spaces */
31 void init_level(struct level *lvl);
32 void destroy_level(struct level *lvl);
34 void lvl_gen_rects(struct level *lvl);
36 int save_level(const struct level *lvl, const char *fname);
37 int load_level(struct level *lvl, const char *fname);