1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! This crate provides a [Bevy](https://bevyengine.org/) plugin for animating sprites.
//!
//! # Features
//!
//! - Animate 2D sprites, [3D sprites](crate::prelude::Sprite3d), UI images and cursors! 🎉
//! - [Easily build](crate::prelude::AnimationBuilder) animations from [spritesheets](crate::prelude::Spritesheet) with custom parameters like [duration](crate::prelude::AnimationDuration), [repetitions](crate::prelude::AnimationRepeat), [direction](crate::prelude::AnimationDirection), [easing](crate::prelude::Easing).
//! - Trigger [events](crate::prelude::AnimationEvent) when animations end or reach specific points.
//!
//! # Examples
//!
//! Please check out the [examples](https://github.com/merwaaan/bevy_spritesheet_animation/tree/main/examples) showcasing those different features.
//!
//! # Quick start
//!
//! 1. Add the [SpritesheetAnimationPlugin](crate::prelude::SpritesheetAnimationPlugin) to your app.
//! 2. Create a [Spritesheet](crate::prelude::Spritesheet) and build animations.
//! 3. Register the animations in the `Assets<Animation>` resource.
//! 4. Add a [SpritesheetAnimation](crate::prelude::SpritesheetAnimation) component to your entity.
//!
//! ```no_run (cannot actually execute during CI builds as there are no displays)
//! ```
const CRATE_NAME: &str = "bevy_spritesheet_animation";