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.


Really neat! Is this for a rogue-like?