Ready to refactor the tilemap so I can stylize different parts of the maps generated.
This commit is contained in:
parent
96a585220b
commit
f45dbe8c48
3 changed files with 6 additions and 6 deletions
|
@ -48,7 +48,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_MOSS";
|
||||
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