If the author happens to read this, thanks for Realm of the Mad God. Fantastic game :)
- https://github.com/redblobgames/dual-mesh/
- https://github.com/redblobgames/mapgen2/
However the html5 UI isn't (it's a big hack I'm abandoning, and working on a different version). Feel free to View Source if you want to see the ugly UI code :)