Crates.io | bevy_aseprite |
lib.rs | bevy_aseprite |
version | 0.12.0 |
source | src |
created_at | 2022-03-11 17:51:10.518142 |
updated_at | 2023-11-26 14:22:02.697094 |
description | Bevy aseprite loader |
homepage | |
repository | |
max_upload_size | |
id | 548388 |
size | 125,965 |
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 |
commands.spawn(AsepriteBundle {
aseprite: asset_server.load("player.ase"),
animation: AsepriteAnimation::from("walk"),
transform: Transform {...},
..Default::default()
});
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()
});
Check out the example to see how it could be used:
cargo run --example show_aseprite
Currently no support for slices or toggling layers.