From e2c44a3ac39b229dfef93833828be697cf104bba Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 24 Dec 2023 22:54:52 +0100 Subject: only draw what is on screen --- include/map.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/map.h') diff --git a/include/map.h b/include/map.h index ea5d619..ed8cbed 100644 --- a/include/map.h +++ b/include/map.h @@ -31,8 +31,8 @@ typedef struct t_tile { vec2f br; } tile; -#define MAP_SIZE_X 40 -#define MAP_SIZE_Y 40 +#define MAP_SIZE_X 1000 +#define MAP_SIZE_Y 1000 #define MAX_LIGHT_EMITTERS 100 typedef struct t_map_info { @@ -61,7 +61,7 @@ typedef struct t_light_data { typedef struct t_extracted_map_data { int width; int height; - tile heightmap[MAP_SIZE_Y][MAP_SIZE_X]; + tile heightmap[MAP_SIZE_Y][MAP_SIZE_X]; // tilemap object objects[MAX_OBJECTS]; light_data lightmap[MAP_SIZE_Y][MAP_SIZE_X]; light_emitter light_emitters[MAX_LIGHT_EMITTERS]; -- cgit v1.2.3-70-g09d2