diff --git a/src/lib.rs b/src/lib.rs index 6148b6eb3aeec3e2bee0daa125659571f0062030..adab91f4bce0de7acfe2fbb623cedf944626d11d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -57,15 +57,8 @@ //! ); //! //! commands -//! // Spawn a Sprite entity to animate the position of. -//! .spawn_bundle(SpriteBundle { -//! sprite: Sprite { -//! color: Color::RED, -//! custom_size: Some(Vec2::new(size, size)), -//! ..Default::default() -//! }, -//! ..Default::default() -//! }) +//! // Spawn an entity to animate the position of. +//! .spawn_bundle(TransformBundle::default()) //! // Add an Animator component to control and execute the animation. //! .insert(Animator::new(tween)); //! # }