Now have a configurable displayable tilemap to do better tiles.
This commit is contained in:
parent
b66a3154c7
commit
7fe6ad174d
10 changed files with 40 additions and 16 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue