#Dungeon creation
29 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
You could probably take inspiration from maze generation algorithms
Where do the corridors intersect
Ok, so you don’t want branching
yeh but its not a huge problem
like even if that happens its just fine and acceptable
i found these algos
There are lots of ways you could go about this
but they do not include a way to draw the corridor
oh can you provide an example/basic idea ?
A super simple approach: Place a room somewhere, start walking randomly without intersecting anything, at some point place a room and start another corridor from there
Try to have fun with this, be creative
There are tons of ways to do this
Another thing you could do is take the “Binary Space Partition (BSP) Rooms” idea from that blog post and then just make the connections without intersecting
mhm
i really cant figure out a way to draw them without intersecting with other rooms.
oh i forgot to mention that corridors cant intersect with rooms
so, I can't just draw them from the center of one room to the center of another.
but thanks for you help !
Simple approach: Pick two rooms close to each other, draw a corridor. You can avoid existing corridors and rooms with simple path-finding techniques. Repeat until you can draw no more corridors. Some rooms may be unreachable, you can prune those.
@zinc stirrup Has your question been resolved? If so, type !solved :)
Thanks !
!solved