Check out Amazon.com!

BlitzCoder Code Archives PageMain Codes Page
"2D Sim City roads (Auto connecting road system)", by nebula
When editing your map you can have the problem where you need to constantly select tiles and place them. This system reads the map and automatically places the correct tile.
I first noticed this system in that old game Sim City. Where you build your road and it would magically connect to other roads nearby. This example does just that.
This example can be used for multiple purposes. Lets say for Coast tiles and other tiles that need to connect to one and another.
Code
Copyright(c) 2000-2004, BlitzCoder. All Rights Reserved.

Code software created by Krylar's Kreations