From 91aef268319a77ee8f5a082ca89264bf2671e212 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 6 May 2023 10:39:19 +1000 Subject: Map rendering and camera movement. --- map.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 map.h (limited to 'map.h') diff --git a/map.h b/map.h new file mode 100644 index 0000000..35e97f2 --- /dev/null +++ b/map.h @@ -0,0 +1,19 @@ +#ifndef map_h +#define map_h + +#include "game_config.h" +#include "render.h" + +typedef struct { + Colour pixels[ + map_width * + map_tile_size * + map_height * + map_tile_size + ]; +} Map; + +void init_map(Map* map); +void render_map(Map* map, int cx, int cy); + +#endif -- cgit v1.2.3-54-g00ecf