changeable z index, with occlusion

This commit is contained in:
StephenAdamson
2024-12-17 21:30:46 +00:00
parent caacf4e072
commit d107626b32
4 changed files with 31 additions and 14 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ fn setup_tilemap(commands: &mut Commands, asset_server: &Res<AssetServer>) {
}
for x in -15..15 {
for y in -15..15 {
let position = Vec3::new(x as f32 * TILE_SIZE, y as f32 * TILE_SIZE, -14.);
let position = Vec3::new(x as f32 * TILE_SIZE, y as f32 * TILE_SIZE, -39.);
commands.spawn(TilePrefab::bedrock(position, asset_server));
}
}