Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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.

share|improve this question
    
What type of display are you trying to get? Do you want it in perspective, as an isometric projection or in top-down perspective? –  Polar Mar 10 '13 at 13:57
    
Sorry, I forgot to mention that I was looking for top-down view: 'orthogonal' projection. –  George Raven Mar 10 '13 at 18:51
add comment

1 Answer

up vote 0 down vote accepted

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.

share|improve this answer
    
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 –  Savlon Mar 11 '13 at 7:05
    
Thanks, I made my own maps in text files, and rendered the maps manually. –  George Raven Mar 14 '13 at 20:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.