diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-12-24 22:54:52 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-12-24 22:54:52 +0100 |
| commit | e2c44a3ac39b229dfef93833828be697cf104bba (patch) | |
| tree | cef3d0cacd4a5cceefb62fcad52ff668cb2145aa /include/map.h | |
| parent | 2a85823f96ec4e9fa62905490ac93910187dfefc (diff) | |
only draw what is on screen
Diffstat (limited to 'include/map.h')
| -rw-r--r-- | include/map.h | 6 |
1 files changed, 3 insertions, 3 deletions
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]; |
