I am always fascinated by procedural dungeon generators. While I think one of the best resources about it is the Procedural Dungeon Generation Algorithm on Gamasutra, I found a dungeon generator project on GitHub which I found very interesting although it’s scattered on too many files – which is a good practice until your publisher wants your game in a single file – and with a couple of missing libraries.
So I fixed it here and there and although it hasn’t been updated for 3 years, I want to give it new life and add features, such as keys and doors, monsters and so on.
At the moment the script is capable of giving interesting results like this one, with rooms and corridors. You can generate a new dungeon clicking here.
As you can see generated dungeons are perfect to be used in Roguelike games, but they need more features and a commented code to help people improving the script.