Now have the ability to load different textures for the floor, not ceiling though, it just matches the floor.
This commit is contained in:
parent
8453e7c3b9
commit
e015652f4c
5 changed files with 40 additions and 22 deletions
|
@ -15,7 +15,11 @@ void WorldBuilder::stylize_rooms() {
|
|||
|
||||
for(auto& room : $map.rooms()) {
|
||||
for(matrix::box it{tiles, room.x, room.y, room.width+1, room.height+1}; it.next();) {
|
||||
if(tiles[it.y][it.x] == 1) tiles[it.y][it.x] = 2;
|
||||
if(tiles[it.y][it.x] == 1) {
|
||||
tiles[it.y][it.x] = 2;
|
||||
} else if(tiles[it.y][it.x] == 0) {
|
||||
tiles[it.y][it.x] = 5;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue