diff options
Diffstat (limited to 'Week1-Pacman/src/map.h')
-rw-r--r-- | Week1-Pacman/src/map.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Week1-Pacman/src/map.h b/Week1-Pacman/src/map.h new file mode 100644 index 0000000..2161806 --- /dev/null +++ b/Week1-Pacman/src/map.h @@ -0,0 +1,20 @@ +#ifndef MAP_H_ +#define MAP_H_ + +#include "demo.h" + +struct map { + int* contents; + + int width; + int height; +}; + +/* + * Load map exported as CSV file from tiled. +*/ +void load_map(const char* filename, struct map* map); +void draw_map(struct demo* demo, struct map* map); +void map_init(struct demo* demo); + +#endif // MAP_H_ |