Dungeon generator


Working on a dungeon generator, so far I’ve managed to spawn corridors of different lengths and intersections that behave as expected.
Now I think I have to figure out a way to remove overlaps.
I know it’s not very impressive but I’m new to scripting and happy that I’ve gotten this far. :slight_smile:
This night was spent figuring out a way to generate only one or two new corridors based on what intersection was there.
Couldn´t get it to work by names because of instancing I think. So I solved it by looking at how many children the intersection has. t-sections have more than left or right turns.

11 Likes

Really neat! Is this for a rogue-like?

Looks neat! Do the colors denote any meaning, or is that just a stylistic choice? Either way, it looks very cool. What are you going to do once you’ve managed to get the overlaps working the way you want?

I find programming procedural things are very satisfying because small changes can really change how things turn out.