Skip to content

Commit

Permalink
Migrate bundles to required components
Browse files Browse the repository at this point in the history
  • Loading branch information
villor committed Nov 4, 2024
1 parent 47a257e commit fbbc38d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions examples/animation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,10 @@ struct AnimationCache(LookupCache);
struct EditorWindow(LookupCurveEguiEditor);

fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
commands.spawn(Camera2dBundle::default());
commands.spawn(Camera2d);
commands.spawn((
SpriteBundle {
texture: asset_server.load("bevy_icon.png"),
transform: Transform::from_xyz(0., -200., 0.).with_scale(Vec3::splat(0.5)),
..default()
},
Sprite::from_image(asset_server.load("bevy_icon.png")),
Transform::from_xyz(0., -200., 0.).with_scale(Vec3::splat(0.5)),
AnimateX {
from: -400.0,
to: 400.0,
Expand Down

0 comments on commit fbbc38d

Please sign in to comment.