Sep 30 2014

drawing a custom 2D tilemap

I have a really simple/stupid demo today. It is however a little bit more awesome behind the scenes as I render the tiles to a mesh programatiacally in Unity. I used most of the stuff from this really awesome tutorial (but I left off in part 2 when he started with custom meshcolliders. That was after I found out that Unity has a 2d Edge Collider…. NICE!

For some docs on Unitys mesh:

And a simple demo (arrow keys to scroll)