parent
da93e763f2
commit
e0de478f21
@ -0,0 +1,40 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.4" tiledversion="1.4.3" orientation="orthogonal" renderorder="right-down" width="10" height="10" tilewidth="32" tileheight="32" infinite="0" nextlayerid="4" nextobjectid="9">
|
||||||
|
<tileset firstgid="1" source="nice2.tsx"/>
|
||||||
|
<layer id="1" name="Kachelebene 1" width="10" height="10">
|
||||||
|
<data encoding="csv">
|
||||||
|
235,233,235,234,233,237,233,235,234,232,
|
||||||
|
232,237,234,237,234,232,233,233,233,282,
|
||||||
|
234,234,232,232,234,233,233,236,237,234,
|
||||||
|
235,232,237,234,234,235,232,235,235,232,
|
||||||
|
234,236,233,233,236,236,235,232,236,237,
|
||||||
|
232,236,235,233,234,232,236,233,232,235,
|
||||||
|
236,232,233,237,237,236,234,236,232,233,
|
||||||
|
235,236,237,236,233,235,235,234,236,237,
|
||||||
|
234,233,233,232,235,235,234,236,234,234,
|
||||||
|
234,236,236,232,235,237,235,232,235,236
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
<layer id="2" name="Kachelebene 2" width="10" height="10">
|
||||||
|
<data encoding="csv">
|
||||||
|
137,221,221,221,221,221,221,222,260,261,
|
||||||
|
201,0,236,237,233,0,0,0,281,178,
|
||||||
|
201,0,236,233,232,232,0,0,0,199,
|
||||||
|
201,0,233,178,179,180,0,0,0,199,
|
||||||
|
201,0,234,199,200,201,0,0,0,199,
|
||||||
|
201,0,0,220,221,222,236,234,0,199,
|
||||||
|
201,0,0,0,233,235,235,235,0,199,
|
||||||
|
201,0,0,0,0,237,232,235,0,199,
|
||||||
|
158,179,179,179,179,179,179,179,179,159,
|
||||||
|
200,200,200,200,200,200,200,200,200,200
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
<objectgroup id="3" name="Objektebene 1">
|
||||||
|
<object id="1" x="0" y="0" width="256" height="32"/>
|
||||||
|
<object id="2" x="0" y="32" width="32" height="288"/>
|
||||||
|
<object id="3" x="32" y="288" width="288" height="32"/>
|
||||||
|
<object id="4" x="288" y="64" width="32" height="224"/>
|
||||||
|
<object id="5" x="256" y="0" width="64" height="64"/>
|
||||||
|
<object id="6" x="96" y="128" width="96" height="64"/>
|
||||||
|
</objectgroup>
|
||||||
|
</map>
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<tileset version="1.4" tiledversion="1.4.3" name="nice2" tilewidth="32" tileheight="32" tilecount="483" columns="21">
|
||||||
|
<image source="terrain.png" width="672" height="736"/>
|
||||||
|
</tileset>
|
||||||
|
After Width: | Height: | Size: 108 KiB |
|
After Width: | Height: | Size: 168 KiB |
@ -0,0 +1,36 @@
|
|||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.trs.main;
|
||||||
|
|
||||||
|
import com.badlogic.gdx.graphics.g2d.Batch;
|
||||||
|
import com.badlogic.gdx.math.Rectangle;
|
||||||
|
import com.badlogic.gdx.scenes.scene2d.Actor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Jan
|
||||||
|
*/
|
||||||
|
public class MapObject extends Actor{
|
||||||
|
|
||||||
|
Rectangle r;
|
||||||
|
|
||||||
|
public MapObject(int x, int y, int width, int height){
|
||||||
|
setName("mapobject");
|
||||||
|
r = new Rectangle(x, y, width, height);
|
||||||
|
setBounds(x, y, width, height);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void act(float delta) {
|
||||||
|
super.act(delta); //To change body of generated methods, choose Tools | Templates.
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void draw(Batch batch, float parentAlpha) {
|
||||||
|
super.draw(batch, parentAlpha); //To change body of generated methods, choose Tools | Templates.
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in new issue