Jump to content
  • Advertisement
Sign in to follow this  
Mizipzor

How to name the coordinates?

This topic is 4577 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

The objective in my game is to build a tower. Kinda like SimTower (for those of you that know about it). It is easier to sort the coords so that the topleft tile (yes, its tilebased) is coordinate 0,0. But this way, some of my testplayer said that the coordinates were confusing. Since the bottom floor on a map thats 15 tiles high became coordinate x,14. They claimed that of course the bottom floor should be 0. I went through alot of trouble trying to reorganice and rewrite stuff so this was the way everything worked. But now when I testplay, it somehow feels like it isnt as obvious that the x coordinate should be in front of the y coordinate. It somehow feels more logical that the floor/level is print first and then the "column". Any thoughts on this? Have anyone else built a tilebased game shown from the side and figured out a good way to name the coordinates?

Share this post


Link to post
Share on other sites
Advertisement
honestly, there's no correct answer. as you discovered different people find different methods intuitive. all that's important is that you are consistent within your own game. for those people who aren't instantly ok with your chosen route there will be a brief learning curve but then your system will become intuitive to them.

-me

Share this post


Link to post
Share on other sites
Vertex coordinates are only relevent from a rendering perspective, you should provide a n alternative coordinate scheme for the game player. The conversion between the two is trivial.

Dave

Share this post


Link to post
Share on other sites
Internally your coordinates should be in whatever form is most convenient for your program to deal with. It's trivial to transform what the player sees to any form you like. I agree, the natural display form of the coordinates is "12th floor, (4, 6)" or something similar, but don't let that dictate how you store the data internally.

Players should never see internal data structures or have to care what form they are in.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!