I am making a 2D Java game with Java's own drawing library. I was wondering how I would make a tile map display on the screen. I would prefer to use a GUI application to make the maps. I'm looking for orthogonal projection: a top down view.

  • \$\begingroup\$ What type of display are you trying to get? Do you want it in perspective, as an isometric projection or in top-down perspective? \$\endgroup\$ – Polar Mar 10 '13 at 13:57
  • \$\begingroup\$ Sorry, I forgot to mention that I was looking for top-down view: 'orthogonal' projection. \$\endgroup\$ – user27209 Mar 10 '13 at 18:51

You can try using Tiled Map Editor. This editor has GUI for you to import tiles, make maps and outputs in XML format. You will need to parse the XML data in your game according to your needs. The XML format is described here and you can refer to this page for java XML parsers. There is a lot of sample games made with Tiled and documentation here.

  • \$\begingroup\$ Just to add to xiao's post, slick2D has a tiled map editor parser built into it so you can use that game library if need be \$\endgroup\$ – Savlon Mar 11 '13 at 7:05
  • \$\begingroup\$ Thanks, I made my own maps in text files, and rendered the maps manually. \$\endgroup\$ – user27209 Mar 14 '13 at 20:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy