From f48f9d9bc53cf5790d24e24eb653cade1c63e96b Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Sat, 28 Sep 2024 04:06:30 -0400 Subject: [PATCH] If you just pick the wider of the dimensions then you get a more even spread vs random direction. --- main.cpp | 4 ++-- map.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 9fe5b51..29f2152 100644 --- a/main.cpp +++ b/main.cpp @@ -24,9 +24,9 @@ int main() { using namespace ftxui; 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(); Matrix &input_map = game_map.input_map(); Matrix &walls = game_map.walls(); diff --git a/map.cpp b/map.cpp index 75c032d..fcd0042 100644 --- a/map.cpp +++ b/map.cpp @@ -226,6 +226,6 @@ void Map::generate() { .height = height() }; - partition_map(gen, root, 5); + partition_map(gen, root, 7); draw_map(this, root); // left }