1
\$\begingroup\$

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.

\$\endgroup\$
2
  • \$\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
    Commented Mar 10, 2013 at 13:57
  • \$\begingroup\$ Sorry, I forgot to mention that I was looking for top-down view: 'orthogonal' projection. \$\endgroup\$
    – user27209
    Commented Mar 10, 2013 at 18:51

1 Answer 1

0
\$\begingroup\$

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.

\$\endgroup\$
2
  • \$\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
    Commented Mar 11, 2013 at 7:05
  • \$\begingroup\$ Thanks, I made my own maps in text files, and rendered the maps manually. \$\endgroup\$
    – user27209
    Commented Mar 14, 2013 at 20:14

You must log in to answer this question.