"The following tutorial helps you build a room-and-halls type randomly generated map (though, I'm sure that with a little tinkering you could make it into caves and tunnels, or whatever else your little heart desires). The concept, and many of my functions and classes in this tutorial are very heavily based on the LibTCOD For Python Tutorial, Part 3 found here. Really, the credit for this should go there. I just ported the idea to JavaScript/Phaser."