From a0817b26a786f24e3b2561a18dae1bf2fb2e8c0a Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Sun, 5 May 2019 18:13:36 -0700 Subject: [PATCH] Disabled shadows and removed unneeded pos calculation --- tools/src/com/riiablo/map/WallAggregatorTool.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/src/com/riiablo/map/WallAggregatorTool.java b/tools/src/com/riiablo/map/WallAggregatorTool.java index 37ba5c40..f173d41b 100644 --- a/tools/src/com/riiablo/map/WallAggregatorTool.java +++ b/tools/src/com/riiablo/map/WallAggregatorTool.java @@ -178,7 +178,7 @@ public class WallAggregatorTool extends ApplicationAdapter { rayHandler = new RayHandler(world); rayHandler.setAmbientLight(0.5f); - rayHandler.setShadows(true); + rayHandler.setShadows(false); light = new PointLight(rayHandler, 360); light.attachToBody(playerBody); @@ -193,15 +193,13 @@ public class WallAggregatorTool extends ApplicationAdapter { IntMap filters = new IntMap<>(); - int tx = 70; - int ty = 0; for (int y = 0; y < 280; y++) { for (int x = 0; x < 200; x++) { - int flags = map.flags(tx + x, ty + y); + int flags = map.flags(x, y); if (flags != 0) { BodyDef def = new BodyDef(); def.type = BodyDef.BodyType.StaticBody; - def.position.set(tx + x, -(ty + y)); + def.position.set(x, -(y)); PolygonShape shape = new PolygonShape(); shape.setAsBox(0.5f, 0.5f);