Skip to content

Commit

Permalink
Merge pull request #1 from mgi388/patch-1
Browse files Browse the repository at this point in the history
Fix incorrect from -> from_id in README.md
  • Loading branch information
merwaaan authored Apr 12, 2024
2 parents fb70560 + 2462061 commit 2d16821
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ fn setup(
..default()
},
// Add a SpritesheetAnimation component that references our newly created animation
SpritesheetAnimation::from(animation_id),
SpritesheetAnimation::from_id(animation_id),
));

commands.spawn(Camera2dBundle::default());
Expand Down Expand Up @@ -179,7 +179,7 @@ fn spawn_enemies(mut commands: Commands, mut library: ResMut<SpritesheetLibrary>

commands.spawn((
SpriteSheetBundle { /* .... */ },
SpritesheetAnimation::from(animation_id),
SpritesheetAnimation::from_id(animation_id),
));
}
}
Expand Down Expand Up @@ -222,7 +222,7 @@ fn spawn_enemies(mut commands: Commands, library: Res<SpritesheetLibrary>) {
for _ in 0..100 {
commands.spawn((
SpriteSheetBundle { /* .... */ },
SpritesheetAnimation::from(animation_id),
SpritesheetAnimation::from_id(animation_id),
));
}
}
Expand Down

0 comments on commit 2d16821

Please sign in to comment.