Bug behoben

master
Jonathan Hager 6 years ago
parent 37a74fe230
commit 2345dca4b7

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

@ -55,8 +55,8 @@ public class GameScreen {
//PLAYER
p = new Texture("player.png");
regions = TextureRegion.split(p, 48, 48);
p = new Texture("player2.png");
regions = TextureRegion.split(p, 16, 16);
player = new Sprite(regions[0][2]);
player.setX(200);
player.setY(200);

@ -82,7 +82,7 @@ public class MapGenerator {
collisionLayer.getObjects().remove(top);
RectangleMapObject tempLeft = new RectangleMapObject(0, mapDimensionY*48 - 48, (mapDimensionX / 2) * 48, 48);
RectangleMapObject tempRight = new RectangleMapObject(((mapDimensionX / 2) + 2) * 48, mapDimensionY*48 - 48, mapDimensionX*48, 48);
RectangleMapObject tempRight = new RectangleMapObject(((mapDimensionX / 2) + 1) * 48, mapDimensionY*48 - 48, (mapDimensionX / 2) * 48, 48);
collisionLayer.getObjects().add(tempLeft);
collisionLayer.getObjects().add(tempRight);
@ -96,7 +96,7 @@ public class MapGenerator {
collisionLayer.getObjects().remove(right);
RectangleMapObject tempTop = new RectangleMapObject(mapDimensionX*48 - 48, ((mapDimensionY / 2) + 2) * 48, 48, (mapDimensionY / 2) * 48);
RectangleMapObject tempTop = new RectangleMapObject(mapDimensionX*48 - 48, ((mapDimensionY / 2) + 1) * 48, 48, (mapDimensionY / 2) * 48);
RectangleMapObject tempBottom = new RectangleMapObject(mapDimensionX*48 - 48, 0, 48, (mapDimensionY / 2) * 48);
collisionLayer.getObjects().add(tempTop);
@ -112,7 +112,7 @@ public class MapGenerator {
collisionLayer.getObjects().remove(bottom);
RectangleMapObject tempLeft = new RectangleMapObject(0, 0, (mapDimensionX / 2) * 48, 48);
RectangleMapObject tempRight = new RectangleMapObject(((mapDimensionX / 2) + 2) * 48, 0, mapDimensionX*48, 48);
RectangleMapObject tempRight = new RectangleMapObject(((mapDimensionX / 2) + 1) * 48, 0, (mapDimensionX / 2) * 48, 48);
collisionLayer.getObjects().add(tempLeft);
collisionLayer.getObjects().add(tempRight);
@ -126,7 +126,7 @@ public class MapGenerator {
collisionLayer.getObjects().remove(left);
RectangleMapObject tempTop = new RectangleMapObject(0, ((mapDimensionY / 2) + 2) * 48, 48, (mapDimensionY / 2) * 48);
RectangleMapObject tempTop = new RectangleMapObject(0, ((mapDimensionY / 2) + 1) * 48, 48, (mapDimensionY / 2) * 48);
RectangleMapObject tempBottom = new RectangleMapObject(0, 0, 48, (mapDimensionY / 2) * 48);
collisionLayer.getObjects().add(tempTop);

Loading…
Cancel
Save