Closed barrybecker4 closed 2 years ago
How to add corridors
When doing the BSP to create the rooms, build a kd-tree. Each node of the tree will contain all its child rooms. We will guarantee that all rooms in a subtree are connected. Proof
Leaves are connected because they contain only 1 room. The partition one level up from leaves contains at most 2 rooms.
Add option to have extra hallway between partitions that allow connecting many rooms to that perpendicular hallway.
This simulator has been added. Support for multiple biomes is a future feature.
Use PCG (Procedural Content Generation) to automatically generate rooms in a dungeon. Inspired by my son's work in hi pixel-perfect game that he wrote in C#.
Implementation will proceed in these phases: