Now using a hunt-and-kill maze algorithm.

This commit is contained in:
Zed A. Shaw 2025-05-18 14:37:43 -04:00
parent 7a0b2f988d
commit 0f8e61797f
4 changed files with 138 additions and 10 deletions

View file

@ -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();