Jump to content
  • Advertisement
Sign in to follow this  

Confused about isometric map data!

This topic is 4859 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I read through numerous websites about isometric code including the ones on here and I'm still confused! If I have a 2D array of mapdata, are the tiles drawn in a diamond shaped order from left to right, top to bottom?? Or do you draw like normal, indexing through the 2D array from left to right, top to bottom? Thanks!

Share this post


Link to post
Share on other sites
Advertisement
The two most common isometric grids are staggered (where the map fills in a square area rather well, but will have jagged edges), and diamond (the tiles themselves form a larger diamond or parallelogram).

Share this post


Link to post
Share on other sites
Generally you draw diamond shaped. It's a good idea to have a function that will correctly mask and print one specific x,y tile though, so that you can print the map any way you want. Having that function is very usefull if you want to move anything in your map (as opposed to just printing it).

Mark
Cornutopia Games
http://www.cornutopia.net

Share this post


Link to post
Share on other sites
It means just that, you draw your map going from left to right and up to down (staggering on odd rows) just like in the regular, rectangular map drawing method (without the staggering, ofcourse). The other way actually draws the map as a diamond or similar.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!