Map is now cleaned out of anything not directly related to the map, and there's a new WorldBuilder class that will turn into a more sophisticated random world generator.

This commit is contained in:
Zed A. Shaw 2024-12-02 06:32:00 -05:00
parent 3f7a9cc124
commit 68d8bdce12
8 changed files with 296 additions and 266 deletions

View file

@ -8,6 +8,7 @@
#include "render.hpp"
#include "save.hpp"
#include "lights.hpp"
#include "worldbuilder.hpp"
#include "ftxui/screen/terminal.hpp" // for SetColorSupport, Color, TrueColor
#include <filesystem>
#include <fcntl.h>
@ -81,7 +82,8 @@ int main(int argc, char *argv[]) {
fs::path save_path{argv[1]};
save::from_file(save_path, world, game_map);
} else {
game_map.generate();
WorldBuilder builder(game_map);
builder.generate();
configure_world(world, game_map);
}