Jump to content
  • Advertisement
Sign in to follow this  
MoBaT

SDL Tile MAP Question

This topic is 1995 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 got a question for how should I be creating my tilemap. Should I make it where I just draw the map myself and then specify the spots where different collisions are like what this guy did: http://a248.e.akamai.net/camo.github.com/28e1bb15d28335f2d7763576debf5543cf6a255b/687474703a2f2f6b656e2d736f66742e636f6d2f696d616765732f7a656c64612f7a656c6461392e706e67

 

Or should I make it where I just draw the map based on:
1:0 1:1

0:1 0:1

 

Where the first part is the map tile id and the second is if it's a certain item like a hole, water, solid etc.

Share this post


Link to post
Share on other sites
Advertisement

That image you linked to looks like it's a tile map editor - if it is a tile map editor, he didn't draw the map, he used and editor to place tiles, and the editor likely saves the map in a format similar to what you suggested.

 

You could use a pre-built editor like Mappy or Tiled. It'll require several days to figure out how to load the maps they generate, but it'd probably be worth it for the speed and ease of creating your maps.

Share this post


Link to post
Share on other sites

Just a thought for ya:

 

One of the first "programs" I ever coded with the intent to do anything was my own tile map editor, it's genuinely not all that hard to make a simplistic one and as I learned at the time 90% of the code used to display, save, and load your maps can be reused easily in the game you make to use the maps, so its not even all that much "extra" time to create one.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!