changeable z index, with occlusion
This commit is contained in:
+1
-1
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user