Procedural Dungeon Generator

 

 

An earlier stage of the generator, with the first iteration of overlap-avoidance

 

This is a dungeon generator that I created in blueprint for an assignment at Futuregames. 

 

 

I did not use any tutorials or look at other procedural level generators for this, but rather wanted to put my own scripting knowledge and logical thought to the test. I am happy with how it turned out in contrast to the relatively short time I spent on it (two weeks, full time). The random prop spawners were created by a classmate. 

 

 

The final iteration, for now

 

The level created can be set to favour a certain amount of turns, amount of rooms to aim for, and always places an entrance with a spawner for the player and an exit. Over a large amount of test runs it has never failed to build a functional level.

 

 

If I had to go back to it and add anything, I’d probably make the corridors have less door frames, to make the level look smoother. I would also have liked to add some larger rooms and colour coded doors and keys. Enemy mobs and some actual gameplay were things I tried to keep in mind when designing this system, but not something I plan on adding, any time soon.