Now have a configurable displayable tilemap to do better tiles.

This commit is contained in:
Zed A. Shaw 2024-12-24 01:36:25 -05:00
parent b66a3154c7
commit 7fe6ad174d
10 changed files with 40 additions and 16 deletions

View file

@ -137,8 +137,10 @@ void WorldBuilder::generate() {
for(matrix::each_cell it{$map.$walls}; it.next();) {
int is_wall = !$map.$walls[it.y][it.x];
$map.$walls[it.y][it.x] = is_wall;
$map.$tiles[it.y][it.x] = is_wall ? L'#' : L'.';
}
// BUG: this is so weird
$map.load_tiles();
}
void WorldBuilder::make_room(size_t origin_x, size_t origin_y, size_t w, size_t h) {