Entities now look like they stand on the tiles.
This commit is contained in:
parent
857cd2f910
commit
8a94108874
4 changed files with 9 additions and 6 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue