fixed the map generator doing paths that hit the edge which made it look like the map was out of bounds.

This commit is contained in:
Zed A. Shaw 2024-12-28 12:37:19 -05:00
parent 194cc6664b
commit 6b4bc6cc11
5 changed files with 23 additions and 4 deletions

View file

@ -152,6 +152,7 @@ void WorldBuilder::generate() {
$map.$walls[it.y][it.x] = is_wall;
}
$map.expand();
$map.load_tiles();
std::array<string, 6> room_types{
@ -164,6 +165,7 @@ void WorldBuilder::generate() {
int room_size = Random::uniform<int>(100, 800);
stylize_room(i, room_types[room_type], room_size * 0.01f);
}
}
void WorldBuilder::make_room(size_t origin_x, size_t origin_y, size_t w, size_t h) {