blob: 6106dc12f23a8e4b41643ff7d43e7e1c8e7255cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);
|