summaryrefslogtreecommitdiff
path: root/src/tiled.h
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-07-23 15:30:42 +0200
committerdavidovski <david@davidovski.xyz>2023-07-23 15:30:42 +0200
commit0d78ec0e53d9824a029840e74bf0721ed2187e6a (patch)
tree74781baff855e3f3760730c9897e932994f3a8a4 /src/tiled.h
parent5ec62c0a2a0357a79f92b8bb37f67272e7f910ff (diff)
add chunk caching
Diffstat (limited to 'src/tiled.h')
-rw-r--r--src/tiled.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tiled.h b/src/tiled.h
index 11518e7..c3d0950 100644
--- a/src/tiled.h
+++ b/src/tiled.h
@@ -1,12 +1,12 @@
#include <raylib.h>
-#include "chunkedtiledmap.h"
+#include "tiledmap.h"
#define SCREEN_W 1280
#define SCREEN_H 720
typedef struct Tiled {
- ChunkedTiledMap tiledMap;
+ TiledMap tiledMap;
float zoom;
Vector2 offset;
@@ -27,14 +27,14 @@ typedef struct Tiled {
int atlasTextureLoc;
int tilemapTextureLoc;
-
} Tiled;
void updateTiledCamera(Tiled *tiled);
Vector2 translateTiledPosition(Tiled tiled, Vector2 screenPos);
Vector2 translateTiledScreenPosition(Tiled tiled, Vector2 tiledPos);
-Tiled initTiled(ChunkedTiledMap tiledMap);
+Tiled initTiled(TiledMap tiledMap);
void drawTiled(Tiled *tiled);
void unloadTiled(Tiled *tiled);
void redrawTiledMap(Tiled tiled);
+void redrawTile(Tiled tiled, int x, int y);