Entities now look like they stand on the tiles.

This commit is contained in:
Zed A. Shaw 2024-12-25 01:29:03 -05:00
parent 857cd2f910
commit 8a94108874
4 changed files with 9 additions and 6 deletions

View file

@ -144,7 +144,9 @@ void WorldBuilder::generate() {
Point center = $map.place_entity(1);
for(matrix::circle it{$map.$walls, center, 3}; it.next();) {
for(int x = it.left; x < it.right; x++) {
$map.$tiles.set_tile(x, it.y, "WATER_TILE");
if(!$map.iswall(x, it.y)) {
$map.$tiles.set_tile(x, it.y, "WATER_TILE");
}
}
}
}