z coordonate to 1

This commit is contained in:
2026-09-16 18:01:46 +02:00
parent b17821fd34
commit 06f4a88de3
+2 -2
View File
@@ -17,8 +17,8 @@ fn spawn_player(mut commands: Commands) {
commands.spawn(( commands.spawn((
Player, Player,
Velocity(Vec2::ZERO), Velocity(Vec2::ZERO),
Sprite::from_color(Color::srgb(0.5, 0.5, 0.5), Vec2::new(20.0, 40.0)), Sprite::from_color(Color::srgb(1.0, 1.0, 1.0), Vec2::new(20.0, 40.0)),
Transform::from_xyz(0.0, 350.0, 0.0), // Top of the screen Transform::from_xyz(0.0, 0.0, 1.0),
)); ));
} }