1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-10-31 11:39:17 +00:00

change dela for change map

This commit is contained in:
2022-06-19 13:08:33 +02:00
parent 9e2e9dd739
commit adf854d15c
9 changed files with 23 additions and 850 deletions

View File

@@ -36,7 +36,7 @@ public class ScreenMap extends RenderingScreen{
private Player player;
private void createMap(String name){
TiledMap tm =new TmxMapLoader().load("./Data/map/"+ name + ".tmx");
TiledMap tm =new TmxMapLoader().load("./map/"+ name + ".tmx");
tMap.put(name,tm);
tMapRenderer.put(name,new OrthogonalTiledMapRenderer(tm));
}
@@ -180,7 +180,6 @@ public class ScreenMap extends RenderingScreen{
try { Door.nextMap = mapProperties.get("nextMap").toString(); } catch (Exception e) { }
try { Door.nextX = Integer.parseInt(mapProperties.get("nextX").toString()); } catch (Exception e) { }
try { Door.nextY = Integer.parseInt(mapProperties.get("nextY").toString()); } catch (Exception e) { }
try { Door.nextDirection = Character.Direction.valueOf(mapProperties.get("nextDirection").toString()); } catch (Exception e) { }
}