Even though HN has seen enough of my site in the last couple days, I also have a little tilemap demo using the two approaches shown here (4-bit and 8-bit). I initially wrote the 8-bit version (I had to make a lookup table mapping the 256 possible neighbor combinations to the 48 unique tile types for each type of terrain) and it looks like this: http://a1k0n.net/jsrpg/
But eventually rejected it for being "too blocky" in favor of the 4-bit version which has a smoother demo: http://a1k0n.net/code/jscroll/b/
But eventually rejected it for being "too blocky" in favor of the 4-bit version which has a smoother demo: http://a1k0n.net/code/jscroll/b/
The tilemaps are autogenerated as well: http://a1k0n.net/jsrpg/tiles.gif and http://a1k0n.net/code/jscroll/a/t.gif