| Crates.io | bevy_libgdx_atlas |
| lib.rs | bevy_libgdx_atlas |
| version | 0.4.0 |
| created_at | 2024-09-07 04:19:29.068753+00 |
| updated_at | 2025-04-26 09:51:33.542682+00 |
| description | Support loading `libgdx.atlas` files (used for sprite sheets and such) as Bevy assets. |
| homepage | |
| repository | https://github.com/rustunit/bevy_libgdx_atlas |
| max_upload_size | |
| id | 1366919 |
| size | 456,609 |
Support loading libgdx.atlas files (used for sprite sheets and such) as Bevy assets.
Read the article with more context around sprite atlases in Bevy on the rustunit blog.
Pack your spritesheet using https://github.com/crashinvaders/gdx-texture-packer-gui
Add the LibGdxAssetPlugin to your app:
use bevy::prelude::*;
use bevy_libgdx_atlas::*;
let app = App::new();
app.add_plugins(MinimalPlugins);
app.add_plugins(AssetPlugin::default());
app.add_plugins(LibGdxAssetPlugin);
Now when you load files with the .libgdx.atlas extension through the asset server, or even bevy_asset_loader, they will load as a LibGdxAtlasAsset which you can then use.
[!TIP] Run
cargo run --example animationto see this example for yourself!
| bevy | crate |
|---|---|
| 0.16 | 0.4,main |
| 0.15 | 0.3 |
| 0.14 | 0.2 |
| 0.13 | 0.1 |
bevy_libgdx_atlas is dual-licensed under either MIT or Apache 2.0, at your option.