I was thinking about a way to make random dungeons, and finally got a way to make them.
The example uses a global variable Level to add more rooms to the map, up to 12 due matrix used (55 by 55).
The rooms and paths are random, and just the walls are left when the code ends. Before deleting rooms and roads it is possible to add events to create enemies and details.
For this demo, the left click on the mouse sets the zoom to 0.1 and centers the view in mouse X and Y for better view. Right click makes the zoom 1 again.
I hope it can be useful.