Slick2D + Tiled Map Editor

Hi this is my first post! ;D

Im using slick2d, good engine but it only has support for orthogonal maps made with the Tiled Map Editor.

Any one knows how can I use Isometric maps made with this tool in my java games?
Or any tool for making iso maps than can be used in java.

((Sorry 4 my poor english :stuck_out_tongue: ))

Why cant you use Iso Maps with Slick? Can you not load it like Orthogonal Maps?
I will try it myself.

Ok you are right xD" Hm when you have to programm it yourself.

Maybe this helps:

Unfortunately that article talks about “staggered isometric” rendering, which is a different kind of isometric that Tiled uses.

You may want to look at the code from Tiled Java that implements the isometric rendering, and see if you can adapt it to render the maps in your game:

http://tiled.hg.sourceforge.net/hgweb/tiled/tiled/file/0.7/src/tiled/view/IsoMapView.java

Eventually I also hope to include isometric rendering in libtiled-java, which is a small TMX support library shipped with the current Qt version of Tiled. It’s not a priority for me though, but maybe somebody would like to work on a patch for that. :slight_smile:

You can still use that. The type of rendering you’re using shouldn’t change any of the logic under the hood.

Just apply a transformation to all your X and Y coordinates when you draw them:

  • Rotate around the center of the screen 45Âș.
  • Scale Y by 2/3 or some amount like that.

And do the opposite to the mouse clicks.