Now have the ability to load different textures for the floor, not ceiling though, it just matches the floor.

This commit is contained in:
Zed A. Shaw 2025-05-26 00:29:32 -04:00
parent 8453e7c3b9
commit e015652f4c
5 changed files with 40 additions and 22 deletions

View file

@ -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;
}
}
}
}