smaller bgs

This commit is contained in:
TudbuT 2024-11-24 08:25:53 +01:00
parent 5e8adfbacd
commit 215f501ee1
No known key found for this signature in database
GPG key ID: B3CF345217F202D3
6 changed files with 13 additions and 7 deletions

View file

@ -194,7 +194,11 @@ fn spawn_block(
.add(Rectangle::new(block_size * len as f32, block_size))
.into(),
material: materials.add(assets.load(tex)),
transform: Transform::from_xyz(x, y, WORLD_DEPTH),
transform: Transform::from_xyz(
x + block_size * ((len as f32 - 1.) / 2.),
y,
WORLD_DEPTH,
),
..Default::default()
},
));