Sign in to follow this  
MoBaT

SDL Tile MAP Question

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this