gamedevelopment.tutsplus.com
How to Use Tile Bitmasking to Auto-Tile Your Level Layouts
Crafting a visually appealing and varied tileset is a time consuming process, but the results are often worth it. However, even after creating the art, you still have to piece it all together...