6 个版本 (3 个破坏性更新)
0.6.1 | 2022 年 10 月 9 日 |
---|---|
0.6.0 | 2022 年 10 月 7 日 |
0.5.1 | 2022 年 8 月 24 日 |
0.4.0 | 2022 年 5 月 13 日 |
0.3.0 | 2022 年 2 月 25 日 |
#1926 in 游戏开发
每月 26 次下载
36KB
263 行
Bevy Texture Atlas Tools
用于处理 Bevy 纹理图集的工具集合。
版本 0.6
- 禁用了 Bevy 默认功能。该crate现在只使用
render
和bevy_asset
。
版本 0.5
- 支持 Bevy 0.8
- 添加了
TextureAtlasPaddedBuilder
的示例。
版本 0.4
- 支持 Bevy 0.7
版本 0.3 更新
- 异构纹理图集加载器已拆分为自己的crate https://crates.io/crates/bevy_heterogeneous_texture_atlas_loader
- 精灵合并现在通过在
TextureAtlas
上实现扩展traitMergeSpritesExt
来实现。 - 版本小于0.4支持Bevy 0.6
功能
- 在图集中合并精灵。
- 将多个
TextureAtlas
合并为单个更大的TextureAtlas
。 - 可选的
TextureAtlasBuilder
,TextureAtlasPaddedBuilder,自动为精灵添加边框填充。
使用方法
要使用此crate,请将以下行添加到项目[dependencies]
部分中的Cargo.toml
文件
bevy_texture_atlas_tools = "0.5"
示例
最小示例,构建具有每个精灵周围8 x 8填充的纹理图集,运行
cargo run --example padded_atlas
依赖项
~42–57MB
~822K SLoC