Salomonsson.se
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 http://studentgamedev.blogspot.se/2013/08/unity-voxel-tutorial-part-1-generating.html (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: http://docs.unity3d.com/ScriptReference/Mesh.html

And a simple demo (arrow keys to scroll)