Dungeon Room Generator Tech Demo
A downloadable project
I think dungeon generation is really cool, so I spent some time creating my own algorithms to do so. One algorithm is looping through a 2d Array, processing each node and direction one step at a time. This algorithm creates a layout similar to games like Binding of Isaac with very linear, simple levels. Both algorithms run super fast, can generate many very large layouts every second.
The other algorithm I called "snake room generator" basically create multiple "snakes" that move in random directions carving a path, which allows for multiple intersections. I think this generator creates more interesting levels, and might be what is used to generate levels in games like Wizard of Legend. Once you have a level generated, you can loop through looking for patterns (say 4 nodes connected in a square) and replace it we prefabricated rooms.
Im not uploading the full project, just the few actual cs files I used in the project because its not user friendly (I was just using this to prototype my ideas) and isnt the point of the project. Feel free to check out the code though.
Status | Prototype |
Category | Other |
Author | Colin Watterson |
Download
Install instructions
these are just the cs files from my unity project, I dont expect anyone to actually put them into their project, but if you wanted to its set up so you can just drag your tiles in.