1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#ifndef MAP_H_ #define MAP_H_ #include "demo.h" struct map { int* contents; int width; int height; SDL_Rect* colliders; int collider_count; }; /* * 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); #endif // MAP_H_