mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-11 11:27:16 +07:00
Moved iso updates to post tick and extended debug tile grid size
This commit is contained in:
parent
f8d1397d95
commit
5acbaa54f1
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user