#texture-atlas #texture #atlas #bevy #sprites #graphics

bevy_texture_atlas_tools

用于处理 Bevy 纹理图集的工具

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 次下载

MIT/Apache

36KB
263

Bevy Texture Atlas Tools

用于处理 Bevy 纹理图集的工具集合。

版本 0.6

  • 禁用了 Bevy 默认功能。该crate现在只使用renderbevy_asset

版本 0.5

  • 支持 Bevy 0.8
  • 添加了TextureAtlasPaddedBuilder的示例。

版本 0.4

  • 支持 Bevy 0.7

版本 0.3 更新

功能

  • 在图集中合并精灵。
  • 将多个TextureAtlas合并为单个更大的TextureAtlas
  • 可选的TextureAtlasBuilderTextureAtlasPaddedBuilder,自动为精灵添加边框填充。

使用方法

要使用此crate,请将以下行添加到项目[dependencies]部分中的Cargo.toml文件

bevy_texture_atlas_tools = "0.5"

示例

最小示例,构建具有每个精灵周围8 x 8填充的纹理图集,运行

cargo run --example padded_atlas

依赖项

~42–57MB
~822K SLoC