1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-01-30 20:52:44 +00:00

now on tests_gdx2d_gradle

This commit is contained in:
Rémi Heredero 2022-06-03 15:50:48 +02:00
parent 9a26efd665
commit 4c99bb5629
4 changed files with 545 additions and 60 deletions

View File

@ -26,13 +26,14 @@ public class ScreenMap {
private MapObjects doors;
Map<String,TiledMap> tMap = new TreeMap<String,TiledMap>();
Map<String,TiledMapRenderer> tMapRenderer = new TreeMap<String,TiledMapRenderer>();
private String map = "test_couloir";
private String map = "desert";
public float zoom;
private int width;
private int tileWidth;
private int height;
private int tileHeight;
// position
Vector2 pannel = new Vector2(30, 30);
@ -59,14 +60,17 @@ public class ScreenMap {
// create map
createMap("test");
createMap("test_couloir");
createMap("desert");
}
public void graphicRender(GdxGraphics g) {
g.clear();
for (int i = 0; i < 100; i++) {
tiledLayer.clear();
for (int i = 0; i < 50; i++) {
try { tiledLayer.add((TiledMapTileLayer) tMap.get(map).getLayers().get(i)); } catch (Exception e) { }
}
//System.out.println(tiledLayer.size() + " layers imported");
TiledMapTileLayer tl = tiledLayer.get(0);
width = tl.getWidth();
tileWidth = (int) tl.getTileWidth();
@ -75,11 +79,11 @@ public class ScreenMap {
//System.out.println(width + " x " + height + " - " + tileWidth + " x " + tileHeight);
try {
doors = tMap.get(map).getLayers().get("door").getObjects();
} catch (Exception e) { }
} catch (Exception e) { doors = null; }
// Hero activity
manageHero();
// System.out.println(hero.getPosition().x + " - " + hero.getPosition().y);
System.out.println("Hero: " + (int)hero.getPosition().x/tileWidth + " x " + (int)hero.getPosition().y/tileHeight);
// Camera follows the hero
g.zoom(zoom);
@ -99,20 +103,13 @@ public class ScreenMap {
private Vector<TiledMapTile> getTile(Vector2 position, int offsetX, int offsetY) {
Vector<TiledMapTile> tiles = new Vector<>();
for (TiledMapTileLayer tl : tiledLayer) {
int x = (int) (position.x / width) + offsetX;
int y = (int) (position.y / height) + offsetY;
System.out.println("tl: " + tl);
int x = (int) (position.x / tileWidth) + offsetX;
int y = (int) (position.y / tileHeight) + offsetY;
try {
System.out.println("begin");
System.out.println( tl.getName());
Cell cell = tl.getCell(x, y);
System.out.println("cell: "+ cell);
if (tl.getCell(x, y) == null) continue;
System.out.println("not null");
TiledMapTile t = cell.getTile();
System.out.println("t: " + t);
tiles.add(t);
} catch (Exception e) { System.out.println("shit");}
if (cell == null) continue;
tiles.add(cell.getTile());
} catch (Exception e) { }
}
return tiles;
@ -121,15 +118,10 @@ public class ScreenMap {
private boolean isWalkable(Vector<TiledMapTile> tile) {
if (tile == null) return false;
boolean walkable = false;
System.out.println("tile: " + tile);
for (TiledMapTile tiledMapTile : tile) {
System.out.println("tiledMapTile: " + tiledMapTile);
Object test = tiledMapTile.getProperties().get("walkable");
walkable = Boolean.parseBoolean(test.toString()) ? true:walkable;
}
//System.out.println(" walkable: " + walkable);
return walkable;
}
@ -143,20 +135,16 @@ public class ScreenMap {
return speed;
}
private String getName(TiledMap tile) {
Object test = tile.getProperties().get("name");
return test.toString();
}
private boolean isDoor(Vector2 position) {
if (doors == null) return false;
boolean onDoor = false;
Integer x = null;
Integer y = null;
int ox = 0;
int oy = 0;
try {
x = (int) (position.x / 32); //tiledLayer.getTileWidth()
y = (int) (position.y / 32); //tiledLayer.getTileHeight()
x = (int) (position.x / tileWidth);
y = (int) (position.y / tileHeight);
} catch (Exception e) { }
for (MapObject object : doors){
@ -165,17 +153,15 @@ public class ScreenMap {
try { ox = (int) ((float) mapProperties.get("x")); } catch (Exception e) { }
try { oy = (int) ((float) mapProperties.get("y")); } catch (Exception e) { }
oy-=288;
oy/=-1;
ox /= tileWidth;
oy /= tileHeight;
ox /= 32;
oy /= 32;
String id = null;
try { id = mapProperties.get("id").toString(); } catch (Exception e) { }
//if(x != null && y != null) System.out.println(id + ": " + x + " x " + y + " - " + ox + " x " + oy);
if (x != null || y != null) onDoor = (x == ox && y == oy) ? true:onDoor;
if ((x != null || y != null) && (x == ox && y == oy)) {
onDoor = true;
try { Door.nextMap = mapProperties.get("nextMap").toString(); } catch (Exception e) { System.out.println("shit 1"); }
try { Door.nextX = Integer.parseInt(mapProperties.get("nextX").toString()); } catch (Exception e) { System.out.println("shit 2"); }
try { Door.nextY = Integer.parseInt(mapProperties.get("nextY").toString()); } catch (Exception e) { System.out.println("shit 3"); }
}
}
return onDoor;
@ -216,23 +202,33 @@ public class ScreenMap {
if(isDoor(hero.getPosition())){
/*
switch(getName(tMap.get(map))){
case "test":
if(hero.getPosition().x == 32 && hero.getPosition().y == 288){
hero.setPosition(576, 256);
map = "desert";
}
break;
default:
break;
}
*/
System.out.println("it's a door");
String nMap = null;
Integer x = null;
Integer y = null;
try {
nMap = Door.nextMap;
x = Door.nextX;
y = Door.nextY;
} catch (Exception e) { }
Door.reset();
if (nMap == null || x == null || y == null) return;
map = nMap;
hero.setPosition(x*tileWidth, y*tileHeight);
System.out.println("Go to: " + map + " in " + x + " x " + y);
}
}
}
static class Door {
static String nextMap;
static Integer nextX;
static Integer nextY;
static void reset(){
nextMap = null;
nextX = null;
nextY = null;
}
}
}

View File

@ -38,9 +38,9 @@ public class testHER extends PortableApplication{
switch (keycode) {
case Input.Keys.Z:
if (sm.zoom == 1.0) {
sm.zoom = 2.0f;
} else if (sm.zoom == 2.0) {
sm.zoom = 4;
sm.zoom = 0.5f;
} else if (sm.zoom == 0.5) {
sm.zoom = 0.25f;
} else {
sm.zoom = 1;
}

View File

@ -0,0 +1,485 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.8" tiledversion="1.8.5" orientation="orthogonal" renderorder="right-down" width="40" height="40" tilewidth="32" tileheight="32" infinite="0" nextlayerid="4" nextobjectid="14">
<editorsettings>
<export target="../../vscode/tests_gdx2d_gradle/app/src/main/java/test_map/data/desert.tmx" format="tmx"/>
</editorsettings>
<properties>
<property name="name" value="desert"/>
</properties>
<tileset firstgid="1" name="Desert" tilewidth="32" tileheight="32" spacing="1" margin="1" tilecount="48" columns="8">
<image source="assets/desert.png" width="265" height="199"/>
<tile id="0">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="1">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="2">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="3">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="4">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="5">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="6">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="7">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="8">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="9">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="2"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="10">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="11">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="12">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="13">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="14">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="15">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="16">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="17">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="18">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="19">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="20">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="21">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="22">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="23">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="24">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="25">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="26">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="27">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="28">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="29">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="30" probability="0.5">
<properties>
<property name="door" value="true"/>
<property name="nextMap" value=""/>
<property name="speed" value="1"/>
<property name="walkable" value="true"/>
</properties>
<objectgroup draworder="index">
<object id="0" x="1" y="1" width="29" height="30"/>
</objectgroup>
</tile>
<tile id="31" probability="0.5">
<properties>
<property name="door" value="true"/>
<property name="nextMap" value=""/>
<property name="speed" value="1"/>
<property name="walkable" value="true"/>
</properties>
<objectgroup draworder="index">
<object id="0" x="4" y="2" width="25" height="28">
<ellipse/>
</object>
</objectgroup>
</tile>
<tile id="32">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="33">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="2"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="34">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="35">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="36">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="37" probability="0.5">
<properties>
<property name="door" value="true"/>
<property name="nextMap" value=""/>
<property name="speed" value="1"/>
<property name="walkable" value="false"/>
</properties>
<objectgroup draworder="index">
<object id="0" x="0" y="-1" width="31" height="32"/>
</objectgroup>
</tile>
<tile id="38" probability="0.5">
<properties>
<property name="door" value="true"/>
<property name="nextMap" value=""/>
<property name="speed" value="1"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="39" probability="0.5">
<properties>
<property name="door" value="true"/>
<property name="nextMap" value=""/>
<property name="speed" value="1"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="40">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="41">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="42">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="43">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="44">
<properties>
<property name="door" value="false"/>
<property name="nextMap" value=""/>
<property name="speed" value="1.5"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="45" probability="0">
<properties>
<property name="door" value="true"/>
<property name="nextMap" value=""/>
<property name="speed" value="1"/>
<property name="walkable" value="false"/>
</properties>
</tile>
<tile id="46" probability="0.5">
<properties>
<property name="door" value="true"/>
<property name="nextMap" value=""/>
<property name="speed" value="1"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<tile id="47" probability="0.5">
<properties>
<property name="door" value="true"/>
<property name="nextMap" value=""/>
<property name="speed" value="1"/>
<property name="walkable" value="true"/>
</properties>
</tile>
<wangsets>
<wangset name="Terrains" type="corner" tile="-1">
<wangcolor name="Desert" color="#ff0000" tile="29" probability="1"/>
<wangcolor name="Brick" color="#00ff00" tile="9" probability="1"/>
<wangcolor name="Cobblestone" color="#0000ff" tile="33" probability="1"/>
<wangcolor name="Dirt" color="#ff7700" tile="14" probability="1"/>
<wangtile tileid="0" wangid="0,1,0,2,0,1,0,1"/>
<wangtile tileid="1" wangid="0,1,0,2,0,2,0,1"/>
<wangtile tileid="2" wangid="0,1,0,1,0,2,0,1"/>
<wangtile tileid="3" wangid="0,4,0,1,0,4,0,4"/>
<wangtile tileid="4" wangid="0,4,0,4,0,1,0,4"/>
<wangtile tileid="5" wangid="0,1,0,4,0,1,0,1"/>
<wangtile tileid="6" wangid="0,1,0,4,0,4,0,1"/>
<wangtile tileid="7" wangid="0,1,0,1,0,4,0,1"/>
<wangtile tileid="8" wangid="0,2,0,2,0,1,0,1"/>
<wangtile tileid="9" wangid="0,2,0,2,0,2,0,2"/>
<wangtile tileid="10" wangid="0,1,0,1,0,2,0,2"/>
<wangtile tileid="11" wangid="0,1,0,4,0,4,0,4"/>
<wangtile tileid="12" wangid="0,4,0,4,0,4,0,1"/>
<wangtile tileid="13" wangid="0,4,0,4,0,1,0,1"/>
<wangtile tileid="14" wangid="0,4,0,4,0,4,0,4"/>
<wangtile tileid="15" wangid="0,1,0,1,0,4,0,4"/>
<wangtile tileid="16" wangid="0,2,0,1,0,1,0,1"/>
<wangtile tileid="17" wangid="0,2,0,1,0,1,0,2"/>
<wangtile tileid="18" wangid="0,1,0,1,0,1,0,2"/>
<wangtile tileid="19" wangid="0,2,0,1,0,2,0,2"/>
<wangtile tileid="20" wangid="0,2,0,2,0,1,0,2"/>
<wangtile tileid="21" wangid="0,4,0,1,0,1,0,1"/>
<wangtile tileid="22" wangid="0,4,0,1,0,1,0,4"/>
<wangtile tileid="23" wangid="0,1,0,1,0,1,0,4"/>
<wangtile tileid="24" wangid="0,1,0,3,0,1,0,1"/>
<wangtile tileid="25" wangid="0,1,0,3,0,3,0,1"/>
<wangtile tileid="26" wangid="0,1,0,1,0,3,0,1"/>
<wangtile tileid="27" wangid="0,1,0,2,0,2,0,2"/>
<wangtile tileid="28" wangid="0,2,0,2,0,2,0,1"/>
<wangtile tileid="29" wangid="0,1,0,1,0,1,0,1"/>
<wangtile tileid="30" wangid="0,1,0,1,0,1,0,1"/>
<wangtile tileid="31" wangid="0,1,0,1,0,1,0,1"/>
<wangtile tileid="32" wangid="0,3,0,3,0,1,0,1"/>
<wangtile tileid="33" wangid="0,3,0,3,0,3,0,3"/>
<wangtile tileid="34" wangid="0,1,0,1,0,3,0,3"/>
<wangtile tileid="35" wangid="0,3,0,1,0,3,0,3"/>
<wangtile tileid="36" wangid="0,3,0,3,0,1,0,3"/>
<wangtile tileid="37" wangid="0,1,0,1,0,1,0,1"/>
<wangtile tileid="38" wangid="0,1,0,1,0,1,0,1"/>
<wangtile tileid="39" wangid="0,1,0,1,0,1,0,1"/>
<wangtile tileid="40" wangid="0,3,0,1,0,1,0,1"/>
<wangtile tileid="41" wangid="0,3,0,1,0,1,0,3"/>
<wangtile tileid="42" wangid="0,1,0,1,0,1,0,3"/>
<wangtile tileid="43" wangid="0,1,0,3,0,3,0,3"/>
<wangtile tileid="44" wangid="0,3,0,3,0,3,0,1"/>
<wangtile tileid="45" wangid="0,1,0,1,0,1,0,1"/>
<wangtile tileid="46" wangid="0,1,0,1,0,1,0,1"/>
<wangtile tileid="47" wangid="0,1,0,1,0,1,0,1"/>
</wangset>
</wangsets>
</tileset>
<layer id="1" name="Ground" width="40" height="40">
<data encoding="base64" compression="zlib">
eJztmNtOwzAMQAPjPi4DJK5idCvsAgP6/1+HK2rJMlliO03Xhz4cbc3S5sR22nRT59w0I5fAFTBJuMYRcJyJi8bvPNLvRDDHXRKKb6rfAXCfyEOCX2z80LX3gH1gRNpeA/1jftTlkMX+EXhS8AycAmfAWOm0zW/iace2GTBXUGb0WwF3LH/o9wZ8AO879PMxI+NK4inxk9QixslX64vMflrXmop5cb+N+6v/r47yi6wix7F48boM+UljxR2wjcYPv8f8eFzbit+SHaOPNn6588s9Oesmf1I+lX6+nNP9Az6LQoyE/ZCXgJ+kBul9D+caYizs5zvPsj7ofe8auIlwK+znOy/mUgR+i9Ve1xRbYtwnz6JDH8verAuv7+ZTcu+kz5+ypfGlSPxqp6rp26XfTyY/rBlLLfC6zuHH91MpdSvxo/sLjR+foza3Uj/tOHQ/gHu6jTGGFr/KeH3L2soRv5Cfdu1Y9mZWvzrHdI+css7bop6/7323dP/f61IoEh19eVg7W076Do+V9n+jvngPDAz4+QU9mLB5
</data>
</layer>
<objectgroup id="3" name="door">
<object id="12" x="18" y="524">
<properties>
<property name="nextMap" value="test"/>
<property name="nextX" type="int" value="4"/>
<property name="nextY" type="int" value="8"/>
</properties>
</object>
<object id="13" x="592" y="1007">
<properties>
<property name="nextMap" value="test_couloir"/>
<property name="nextX" type="int" value="9"/>
<property name="nextY" type="int" value="4"/>
</properties>
</object>
</objectgroup>
<objectgroup id="2" name="Colision"/>
</map>

View File

@ -8996,26 +8996,30 @@
</data>
</layer>
<objectgroup id="7" name="door" locked="1">
<object id="4" name="test" gid="17" x="96" y="96" width="32" height="32">
<object id="4" gid="17" x="96" y="96" width="32" height="32">
<properties>
<property name="nextMap" value="test"/>
<property name="nextX" type="int" value="2"/>
<property name="nextY" type="int" value="9"/>
</properties>
</object>
<object id="5" name="test" gid="17" x="480" y="96" width="32" height="32">
<object id="5" gid="17" x="480" y="96" width="32" height="32">
<properties>
<property name="nextMap" value="test"/>
<property name="nextX" type="int" value="6"/>
<property name="nextY" type="int" value="9"/>
</properties>
</object>
<object id="6" name="test" gid="2147483665" x="512" y="96" width="32" height="32">
<object id="6" gid="2147483665" x="512" y="96" width="32" height="32">
<properties>
<property name="nextMap" value="test"/>
<property name="nextX" type="int" value="6"/>
<property name="nextY" type="int" value="9"/>
</properties>
</object>
<object id="7" name="test" gid="2147483665" x="128" y="96" width="32" height="32">
<object id="7" gid="2147483665" x="128" y="96" width="32" height="32">
<properties>
<property name="nextMap" value="test"/>
<property name="nextX" type="int" value="2"/>
<property name="nextY" type="int" value="9"/>
</properties>