问题描述
按照关于设置 LibGDX 项目的教程和教程说,在第三方部分应该有一个通用补间引擎.地雷没有出现,有没有办法让它出现?我要下载什么?
Following a tutorial on setting up A LibGDX project and the tutorial says that in the third party section there should be a Universal Tween Engine. Mines not showing up, is there a way for it to show up? What do i have to download?
提前致谢:))
推荐答案
Gdx-setup-new-ui-jar 不附带 TweenEngine 库.还有另一种添加通用 TweenEngine 的方法.由于您现在使用的是 Gradle,所以非常简单.
The Gdx-setup-new-ui-jar does not come with TweenEngine library.There is another way of adding Universal TweenEngine. Since you are using Gradle now, so it is very easy.
只需从此处下载 TweenEngine https://code.google.com/p/java-universal-tween-engine/downloads/list 并将其粘贴到您的 core/libs android/libs 和 ios/libs 文件夹中.
just download the TweenEngine from here https://code.google.com/p/java-universal-tween-engine/downloads/list and paste it in your core/libs android/libs and ios/libs folders.
在build.gradle的core、android和ios的依赖项末尾添加这一行.
in build.gradle add this line at the end of dependencies of core, android and 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')
}
}
然后只需清理/构建您的项目,您就可以开始了.
then just clean/build your project and you are good to go.
这篇关于为什么我在设置 LibGDX 时没有通用补间引擎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!