Skip to content

Commit

Permalink
A player has a size, code by its Transform's scale
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Jul 14, 2024
1 parent 223e755 commit 8a5f901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn add_player(mut commands: Commands) {
commands.spawn((
SpriteBundle {
transform: Transform {
size: Vec3::new(64.0, 32.0, 1.0),
scale: Vec3::new(64.0, 32.0, 1.0),
..default()
},
..default()
Expand Down

0 comments on commit 8a5f901

Please sign in to comment.