4 releases (2 breaking)
0.3.1 | Jul 4, 2023 |
---|---|
0.3.0 | Jul 4, 2023 |
0.2.0 | Mar 17, 2022 |
0.1.0 | Mar 11, 2022 |
#16 in #aseprite
117 downloads per month
Used in 3 crates
(2 directly)
73KB
1.5K
SLoC
Bevy Aseprite Parser and Loader
This is a fork of TheNeikos/bevy_spicy_aseprite.
Add bevy_aseprite = "0.12"
to your Cargo.toml.
Compatability table
bevy | bevy_aseprite |
---|---|
0.12 | 0.12 |
0.11 | 0.11 |
0.10 | 0.10 |
0.9 | 0.9 |
How to use it without derives
commands.spawn(AsepriteBundle {
aseprite: asset_server.load("player.ase"),
animation: AsepriteAnimation::from("walk"),
transform: Transform {...},
..Default::default()
});
How to use it with derive (for compile time validation)
mod sprites {
use bevy_aseprite::aseprite;
aseprite!(pub Player, "player.ase");
}
...
commands.spawn(AsepriteBundle {
aseprite: asset_server.load(sprites::Player::PATH),
animation: AsepriteAnimation::from(sprites::Player::tags::LEFT_WALK),
transform: Transform {...},
..Default::default()
});
Examples
Check out the example to see how it could be used:
cargo run --example show_aseprite
Limitations
Currently no support for slices or toggling layers.
Dependencies
~12MB
~74K SLoC