gpt4 book ai didi

libgdx - 如何创建要在 libgdx 中使用的皮肤文件

转载 作者:行者123 更新时间:2023-12-04 05:26:27 28 4
gpt4 key购买 nike

我一直在寻找来自 libgdx SVN 的 skinpacker,但没有成功。
然后我知道它不再存在。所以,问题是如何创建一个 skin.json 文件以在我的 libgdx 项目中使用。你知道有什么工具可以让我使用 GUI 来创建皮肤。
谢谢。

最佳答案

Gnurfos says ,你需要运行 TexturePacker2生成皮肤文件。我发现设置一个 helper class 很有帮助所以我不必记住所有的路径信息。

public class AssetPacker {
public static void main(String[] args) throws Exception {
TexturePacker2.process(
"assets-raw/skin",
"../vograbulary-android/assets/data/ui",
"uiskin.atlas");
}
}

以下是我项目 README file 中的一些相关说明.

To edit the graphics files, edit the contents of vograbulary-test/assets-raw, and then run vograbulary-test/src/com.github.donkirkby.vograbulary.AssetPacker. To change the font, follow the instructions for running Hiero. Launch Hiero, open the vograbulary-test/assets-raw/default.hiero settings file, and then save the font file over vograbulary-android/assets/data/ui/default.fnt. That will also generate default.png, which you need to move back to vograbulary-test/assets-raw/skin/default.png. Finally, run the AssetPacker again.



皮肤的原创描述在 another question .

关于libgdx - 如何创建要在 libgdx 中使用的皮肤文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13160190/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com