接下来是关于设置 LibGDX 项目的教程,教程说在第三方部分应该有一个通用 Tween 引擎。地雷不显示,有什么办法可以显示吗?我需要下载什么?
提前致谢 :))
Gdx-setup-new-ui-jar 不附带 TweenEngine 库。
还有另一种添加Universal TweenEngine 的方法。由于您现在正在使用 Gradle,所以这非常简单。
只需从这里下载 TweenEnginehttps://code.google.com/p/java-universal-tween-engine/downloads/list https://code.google.com/p/java-universal-tween-engine/downloads/list并将其粘贴到您的 core/libs android/libs 和 ios/libs 文件夹中。
在 build.gradle 中,在 core、android 和 ios 的依赖项末尾添加这一行。
compile fileTree(dir: 'libs', include: '*.jar')
像这样:
project(":android") {
apply plugin: "android"
configurations { natives }
dependencies {
compile project(":core")
compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
natives "com.badlogicgames.gdx:gdx-bullet-platform:$gdxVersion:natives-x86"
compile fileTree(dir: 'libs', include: '*.jar')
}
}
然后只需清理/构建您的项目就可以了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)