aboutsummaryrefslogtreecommitdiff
path: root/map.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-06 12:22:50 +1000
committerquou <quou@disroot.org>2023-05-06 12:22:50 +1000
commit937edea9599718e959f8ed135e97c68728855975 (patch)
treeea5d5551b470603d2d907dba4869ff52e742d9de /map.h
parent91aef268319a77ee8f5a082ca89264bf2671e212 (diff)
Add solid environment collisions.
Diffstat (limited to 'map.h')
-rw-r--r--map.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/map.h b/map.h
index 35e97f2..5b79195 100644
--- a/map.h
+++ b/map.h
@@ -4,6 +4,8 @@
#include "game_config.h"
#include "render.h"
+struct World;
+
typedef struct {
Colour pixels[
map_width *
@@ -13,7 +15,7 @@ typedef struct {
];
} Map;
-void init_map(Map* map);
+void init_map(Map* map, struct World* world);
void render_map(Map* map, int cx, int cy);
#endif