summaryrefslogtreecommitdiff
path: root/src/tiled.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tiled.c')
-rw-r--r--src/tiled.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tiled.c b/src/tiled.c
index 2cb1cb0..b679e3c 100644
--- a/src/tiled.c
+++ b/src/tiled.c
@@ -6,16 +6,16 @@
#define SCREEN_W 1280
#define SCREEN_H 720
-const int atlasSize[2] = {2, 2};
int main() {
InitWindow(SCREEN_W, SCREEN_H, "tiled");
Shader shader = LoadShader(0, "tiled.glsl");
- Texture2D tilemap = loadTileMap("map.tiles");
+ int atlasSize[2] = {0, 0};
+ Texture2D tilemap, atlas;
+ loadTileMap("map.tiles", &tilemap, &atlas, atlasSize);
- Texture atlas = LoadTexture("atlas.png");
RenderTexture2D target = LoadRenderTexture(SCREEN_W, SCREEN_H);
float resolution[2] = {SCREEN_W, SCREEN_H};