SDL Tile MAP Question

Started by
1 comment, last by Plethora 11 years, 2 months ago

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.

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.

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.

I'm working on a game! It's called "Spellbook Tactics". I'd love it if you checked it out, offered some feedback, etc. I am very excited about my progress thus far and confident about future progress as well!

http://infinityelephant.wordpress.com

This topic is closed to new replies.

Advertisement