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