8 releases (5 breaking)
Uses new Rust 2024
| new 0.6.0 | Jan 15, 2026 |
|---|---|
| 0.5.0 | Nov 15, 2025 |
| 0.4.0 | Apr 26, 2025 |
| 0.3.2 | Dec 12, 2024 |
| 0.1.0 | Sep 7, 2024 |
#2212 in Game dev
340KB
233 lines
bevy_libgdx_atlas
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.
Usage
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!
Contributing
Our Other Crates
- bevy_debug_log
- bevy_device_lang
- bevy_web_popups
- bevy_ios_iap
- bevy_ios_review
- bevy_ios_gamecenter
- bevy_ios_alerts
- bevy_ios_notifications
- bevy_ios_impact
- bevy_ios_safearea
Compatible Bevy Versions
| bevy | crate |
|---|---|
| 0.18 | 0.6,main |
| 0.17 | 0.5 |
| 0.16 | 0.4 |
| 0.15 | 0.3 |
| 0.14 | 0.2 |
| 0.13 | 0.1 |
License
bevy_libgdx_atlas is dual-licensed under either MIT or Apache 2.0, at your option.
Dependencies
~40–57MB
~1M SLoC