z coordonate to 1
This commit is contained in:
+2
-2
@@ -17,8 +17,8 @@ fn spawn_player(mut commands: Commands) {
|
||||
commands.spawn((
|
||||
Player,
|
||||
Velocity(Vec2::ZERO),
|
||||
Sprite::from_color(Color::srgb(0.5, 0.5, 0.5), Vec2::new(20.0, 40.0)),
|
||||
Transform::from_xyz(0.0, 350.0, 0.0), // Top of the screen
|
||||
Sprite::from_color(Color::srgb(1.0, 1.0, 1.0), Vec2::new(20.0, 40.0)),
|
||||
Transform::from_xyz(0.0, 0.0, 1.0),
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user