diff options
Diffstat (limited to 'include/map.h')
| -rw-r--r-- | include/map.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/map.h b/include/map.h new file mode 100644 index 0000000..6106dc1 --- /dev/null +++ b/include/map.h @@ -0,0 +1,23 @@ +#pragma once + +#include "raylib.h" +#include "raytmx.h" + +typedef struct { + TmxMap *map; + TmxLayer *wallLayer; + TmxLayer *groundLayer; + TmxLayer *decorLayer; +} Map; + +typedef struct Entities Entities; + +Map *LoadMap(const char *filename, Entities *entities); + +bool isCollision(Map *map, Rectangle bounds); + +void DrawMap(Map *map); +void DrawPickups(Entities *entities, Map *map); +void DrawKeys(Entities *entities, Map *map); + +void UnloadMap(Map *map); |
