How tiles are drawn in Skytorn. It actually happens in 2 passes. First, it renders the “base” tiles (the centers you see above). Then, it goes through the tiles again, but this time checks the adjacent tiles, and decides which edges to draw.
Every tile “type” has rules for when they draw edges. For example, grass draws its edges when it’s adjacent to a rock tile, so it looks like it’s “on top” of the rock.












