From 31da4cb5bdf27f602149bd538a6a489d9e627330 Mon Sep 17 00:00:00 2001 From: GammelJan Date: Sun, 17 May 2020 13:27:56 +0200 Subject: [PATCH] Ehre --- core/assets/sprites/doorbottom.png | Bin 1237 -> 1237 bytes .../com/dungeoncrawler/view/MapGenerator.java | 6 ++++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/assets/sprites/doorbottom.png b/core/assets/sprites/doorbottom.png index 30f5b96892f79148747a8d1cddeb477386a5ee6d..83075270881c3b33156b2a1bfc27667b4b9fbbee 100644 GIT binary patch delta 20 ccmcc0d6jd+Q$}`f5%p(V4<>GY!}yX309yeF=l}o! delta 20 ccmcc0d6jd+Q$}_U1@-uwJ?A&SVSLF109fM)#{d8T diff --git a/core/src/com/dungeoncrawler/view/MapGenerator.java b/core/src/com/dungeoncrawler/view/MapGenerator.java index 1185dd8..a98b605 100644 --- a/core/src/com/dungeoncrawler/view/MapGenerator.java +++ b/core/src/com/dungeoncrawler/view/MapGenerator.java @@ -33,6 +33,7 @@ public class MapGenerator { Texture doorTop; Texture doorLeft; Texture doorRight; + Texture doorBottom; public MapGenerator(Texture[] tiles){ allTiles = new TextureRegion[7][][]; @@ -47,6 +48,7 @@ public class MapGenerator { doorTop = new Texture("sprites/door.png"); doorLeft = new Texture("sprites/doorleft.png"); doorRight = new Texture("sprites/doorright.png"); + doorBottom = new Texture("sprites/doorbottom.png"); } @@ -201,9 +203,9 @@ public class MapGenerator { staticLayer.getCell((tempX / 2) + 1, 0).setTile(new StaticTiledMapTile(splitTiles[0][0])); //unten1 staticLayer.getCell((tempX / 2) + 2, 0).setTile(new StaticTiledMapTile(splitTiles[4][4])); //unten2 - AnimatedObject door = new AnimatedObject(this.doorTop, 48, 144); + AnimatedObject door = new AnimatedObject(this.doorBottom, 48, 48); - door.setSpritePosition(((tempX / 2) + 1) * 48, -2 * 48); + door.setSpritePosition(((tempX / 2) + 1) * 48, 0); door.setFrame(9); door.updateTexture();