Updated Libgdx to a newer version to add gui to the game. This sadly broke the player sprite :/
This commit is contained in:
37
lwjgl3/build.gradle
Normal file
37
lwjgl3/build.gradle
Normal file
@@ -0,0 +1,37 @@
|
||||
apply plugin: 'application'
|
||||
|
||||
sourceSets.main.resources.srcDirs += [ rootProject.file('assets').path ]
|
||||
mainClassName = 'Collector.lwjgl3.Lwjgl3Launcher'
|
||||
eclipse.project.name = appName + '-lwjgl3'
|
||||
sourceCompatibility = 8.0
|
||||
|
||||
dependencies {
|
||||
api project(':core')
|
||||
api "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
|
||||
api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
||||
api "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
|
||||
api "com.badlogicgames.gdx:gdx-controllers-lwjgl3:$gdxVersion"
|
||||
api "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
|
||||
api "com.badlogicgames.gdx:gdx-bullet-platform:$gdxVersion:natives-desktop"
|
||||
api "com.badlogicgames.gdx:gdx-tools:$gdxVersion"
|
||||
api "de.tomgrill.gdxdialogs:gdx-dialogs-desktop:$dialogsVersion"
|
||||
}
|
||||
|
||||
import org.gradle.internal.os.OperatingSystem
|
||||
|
||||
run {
|
||||
workingDir = rootProject.file('assets').path
|
||||
setIgnoreExitValue(true)
|
||||
|
||||
if (OperatingSystem.current() == OperatingSystem.MAC_OS) {
|
||||
// Required to run LWJGL3 Java apps on MacOS
|
||||
jvmArgs += "-XstartOnFirstThread"
|
||||
}
|
||||
}
|
||||
jar {
|
||||
archiveFileName = "${appName}-${version}.jar"
|
||||
from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||
manifest {
|
||||
attributes 'Main-Class': project.mainClassName
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user