Page 1 of 1

Tile based map creation

PostPosted: Feb 5, 2004 @ 4:14am
by fast_rx
I'm working on another game that uses a tile based engine and I need to make a better level editor. I'd really like something that was smart enough to know where to "fill in" with the correct tiles (like for instance, I place a bunch of 'forest' tiles in an area and it is smart enough to put the transitional tiles at the edges).

Do any editors do this? And how would you code something like that since more than one tile could fit a single side, but all sides would have to be examined along with all the what-if instances where multiple tiles match... I could see running a recursive function to do it, but the specifics aren't really jumping out at me yet.

Ideas, links, anything appreciated.

Jason

PostPosted: Feb 5, 2004 @ 4:23am
by DillRye
While I dont have any code for this, I know a good page on the basic theory.

http://www.gamedev.net/reference/articl ... cle934.asp