diff options
Diffstat (limited to 'src/tiled.h')
-rw-r--r-- | src/tiled.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tiled.h b/src/tiled.h index de469be..ae8fcc5 100644 --- a/src/tiled.h +++ b/src/tiled.h @@ -5,19 +5,19 @@ #define SCREEN_W 1280 #define SCREEN_H 720 -#define RENDER_DISTANCE 16 +#define RENDER_DISTANCE 4 -typedef struct Tiled { +typedef struct { TiledMap tiledMap; float zoom; - + // main viewport offset Vector2 offset; // offset passed to shader for rendering Vector2 renderOffset; // offset used to calculate which chunks to render - int chunkOffset[2]; + int chunkOffset[4]; int atlasSize[2]; int renderArea[2]; |