TINY MIASMATA for the DEMOMITE console
This is still a mess. All the code is here and it is fairly well commented, but it is still full of confusion and holes.
You need Ruby with Gosu and Texplay to run the mapper, which turns an image file of a map into a code file that can be assembled into the game. Look at the map included for the colors required to make different tiles.