Hunt-and-kill algorithm rocks. It handles everything I need for map gen, including spawn points, room placement, and the maze like map.
This commit is contained in:
parent
0f8e61797f
commit
a0b785cb2a
8 changed files with 62 additions and 336 deletions
4
maze.hpp
4
maze.hpp
|
@ -3,7 +3,5 @@
|
|||
#include "map.hpp"
|
||||
|
||||
namespace maze {
|
||||
void recursive_div(matrix::Matrix& map, std::vector<Room>& rooms);
|
||||
|
||||
void hunt_and_kill(Matrix& maze, std::vector<Room>& rooms);
|
||||
void hunt_and_kill(Matrix& maze, std::vector<Room>& rooms, std::vector<Point>& dead_ends);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue