Nudge character up so it's collision center is in the center of the screen

This commit is contained in:
Daniel Flanagan 2024-08-04 20:50:17 -05:00
parent 172a58162b
commit 372635a19c

View file

@ -57,6 +57,7 @@ pub fn startup(
Name::new("PlayerSprite"),
SpriteBundle {
texture: assets.load("img/Player.png"),
transform: Transform::from_xyz(-1., 16., 0.),
..default()
},
TextureAtlas {
@ -78,7 +79,7 @@ pub fn startup(
text.transform.scale.x = 0.25;
text.transform.scale.y = 0.25;
text.transform.translation.z = 500.0;
text.transform.translation.y = 32.;
text.transform.translation.y = 48.;
player.spawn((Name::new("PlayerName"), text));
player
.spawn((