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:
parent
194cc6664b
commit
6b4bc6cc11
5 changed files with 23 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue