master
Jonathan Hager 6 years ago
parent 880a80c5c7
commit 077744c3dc

@ -81,8 +81,8 @@ public class MapGenerator {
staticLayer.getCell((tempX / 2) + 1, tempY + 1).setTile(new StaticTiledMapTile(splitTiles[0][3])); //oben staticLayer.getCell((tempX / 2) + 1, tempY + 1).setTile(new StaticTiledMapTile(splitTiles[0][3])); //oben
collisionLayer.getObjects().remove(top); collisionLayer.getObjects().remove(top);
RectangleMapObject tempLeft = new RectangleMapObject(0, mapDimensionY*48 - 48, (tempX / 2) * 48, 48); RectangleMapObject tempLeft = new RectangleMapObject(0, mapDimensionY*48 - 48, (mapDimensionX / 2) * 48, 48);
RectangleMapObject tempRight = new RectangleMapObject((tempX / 2) + 2, mapDimensionY*48 - 48, mapDimensionX*48, 48); RectangleMapObject tempRight = new RectangleMapObject(((mapDimensionX / 2) + 2) * 48, mapDimensionY*48 - 48, mapDimensionX*48, 48);
collisionLayer.getObjects().add(tempLeft); collisionLayer.getObjects().add(tempLeft);
collisionLayer.getObjects().add(tempRight); collisionLayer.getObjects().add(tempRight);

Loading…
Cancel
Save