I created a Tiled Map using the Tiled Map Editor. In the Editor it looks like this:
In my java program it looks like this:
My java code is:
public class Game extends BasicGame {
private TiledMap map;
public static void main(String[] args) throws SlickException {
AppGameContainer app = new AppGameContainer(new Game());
app.setDisplayMode(800, 600, false);
app.setShowFPS(true);
app.start();
}
public Game() {
super("Test");
}
@Override
public void render(GameContainer arg0, Graphics arg1) throws SlickException {
map.render(300, 200);
}
@Override
public void init(GameContainer arg0) throws SlickException {
map = new TiledMap("res/unbenannt.tmx"); //path is valid!
}
@Override
public void update(GameContainer gc, int arg1) throws SlickException {
}
}
The orientation of the map is isometric. I'm working under Linux Mint, Java 6, eclipse with the latest Slick2D and LWJGL Library.
Did I forget anything? Why am I getting such a weird looking map rendering?