From 5acbaa54f1baef2f0b3dfaeeaf8a901cc47c0773 Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Sat, 11 May 2019 18:40:13 -0700 Subject: [PATCH] Moved iso updates to post tick and extended debug tile grid size --- tools/src/com/riiablo/camera/CameraTool.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/src/com/riiablo/camera/CameraTool.java b/tools/src/com/riiablo/camera/CameraTool.java index 3b2a4713..cebff4ba 100644 --- a/tools/src/com/riiablo/camera/CameraTool.java +++ b/tools/src/com/riiablo/camera/CameraTool.java @@ -127,8 +127,6 @@ public class CameraTool extends ApplicationAdapter { public void render() { Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); - iso.update(); - final float delta = Gdx.graphics.getDeltaTime(); final boolean touched = Gdx.input.isTouched(); accumulator += delta; @@ -137,6 +135,8 @@ public class CameraTool extends ApplicationAdapter { if (touched) moveToCursor(0.25f); } + iso.update(); + shapes.setTransformMatrix(center); shapes.setProjectionMatrix(idt); shapes.begin(ShapeRenderer.ShapeType.Line); { @@ -156,8 +156,8 @@ public class CameraTool extends ApplicationAdapter { shapes.line(0, 0, 0, 8); shapes.setColor(Color.WHITE); - for (int x = -160; x < 160; x += 32) { - for (int y = -80; y <= 80; y += 16) { + for (int x = -320; x < 320; x += 32) { + for (int y = -160; y <= 160; y += 16) { shapes.line(x, y, x + 32, y + 16); shapes.line(x, y + 16, x + 32, y); } @@ -185,7 +185,7 @@ public class CameraTool extends ApplicationAdapter { } shapes.end(); pos.set(iso.position); - iso.toTile50(pos); + iso.toTile(pos); float width; batch.begin();