From 937edea9599718e959f8ed135e97c68728855975 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 6 May 2023 12:22:50 +1000 Subject: Add solid environment collisions. --- map.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'map.h') 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 -- cgit v1.2.3-54-g00ecf