If you just pick the wider of the dimensions then you get a more even spread vs random direction.

This commit is contained in:
Zed A. Shaw 2024-09-28 04:06:30 -04:00
parent 5f09747109
commit f48f9d9bc5
2 changed files with 3 additions and 3 deletions

View file

@ -24,9 +24,9 @@ int main() {
using namespace ftxui; using namespace ftxui;
std::string reset_position; std::string reset_position;
auto c = Canvas(60 * 2, 50 * 4); auto c = Canvas(60 * 2, 27 * 4);
Map game_map(60, 50); Map game_map(60, 27);
game_map.generate(); game_map.generate();
Matrix &input_map = game_map.input_map(); Matrix &input_map = game_map.input_map();
Matrix &walls = game_map.walls(); Matrix &walls = game_map.walls();

View file

@ -226,6 +226,6 @@ void Map::generate() {
.height = height() .height = height()
}; };
partition_map(gen, root, 5); partition_map(gen, root, 7);
draw_map(this, root); // left draw_map(this, root); // left
} }