Now using a hunt-and-kill maze algorithm.
This commit is contained in:
parent
7a0b2f988d
commit
0f8e61797f
4 changed files with 138 additions and 10 deletions
|
@ -137,10 +137,7 @@ void WorldBuilder::generate_rooms() {
|
|||
}
|
||||
|
||||
void WorldBuilder::generate_map() {
|
||||
matrix::dump("BEFORE MAZE:", $map.$walls);
|
||||
maze::recursive_div($map.$walls, $map.$rooms);
|
||||
matrix::dump("AFTER MAZE:", $map.$walls);
|
||||
|
||||
maze::hunt_and_kill($map.$walls, $map.$rooms);
|
||||
$map.expand();
|
||||
$map.load_tiles();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue