First hack to get a random gen map going.
This commit is contained in:
parent
2daa1c9bd5
commit
56d67aba28
7 changed files with 72 additions and 34 deletions
|
@ -45,7 +45,7 @@ void TileMap::set_tile(size_t x, size_t y, string tile_name) {
|
|||
|
||||
void TileMap::load(matrix::Matrix &walls) {
|
||||
for(matrix::each_cell it{walls}; it.next();) {
|
||||
string tile_name = walls[it.y][it.x] == SPACE_VALUE ? "FLOOR_TILE" : "WALL_TILE";
|
||||
string tile_name = walls[it.y][it.x] == SPACE_VALUE ? "FLOOR_TILE" : "WALL_PLAIN";
|
||||
set_tile(it.x, it.y, tile_name);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue