Use opaque
to be more clear.
This commit is contained in:
parent
8224d85b4b
commit
ad60bd7a40
|
@ -232,7 +232,7 @@ fn spawn_colliders(
|
|||
.insert(MapObstruction)
|
||||
.id();
|
||||
if tile.blocks_visibility() {
|
||||
commands.entity(id).insert(Visible::default());
|
||||
commands.entity(id).insert(Visible::opaque());
|
||||
}
|
||||
commands.entity(map_entity).push_children(&[id]);
|
||||
}
|
||||
|
@ -327,7 +327,7 @@ fn spawn_colliders(
|
|||
.insert(MapObstruction)
|
||||
.id();
|
||||
if map.at(x as usize, y as usize).blocks_visibility() {
|
||||
commands.entity(id).insert(Visible::default());
|
||||
commands.entity(id).insert(Visible::opaque());
|
||||
}
|
||||
commands.entity(map_entity).push_children(&[id]);
|
||||
bottom_left = None;
|
||||
|
|
Loading…
Reference in New Issue
Block a user