smaller bgs
This commit is contained in:
parent
5e8adfbacd
commit
215f501ee1
6 changed files with 13 additions and 7 deletions
|
@ -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()
|
||||
},
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue