eobish

view src/level.h @ 5:0baf4e98315e

depth cueing
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 19 Jan 2015 02:32:01 +0200
parents
children
line source
1 #ifndef LEVEL_H_
2 #define LEVEL_H_
4 #include "tileset.h"
6 #define MAX_LEVEL_SIZE 64
8 struct level {
9 int cells[MAX_LEVEL_SIZE][MAX_LEVEL_SIZE];
10 int num_cells[2];
11 int start_pos[2];
12 int goal_pos[2];
14 struct tileset tileset;
15 };
17 void level_init(struct level *lvl);
18 void level_destroy(struct level *lvl);
20 int level_load(struct level *lvl, const char *fname);
22 int level_cell(struct level *lvl, int cx, int cy);
24 #endif /* LEVEL_H_ */