Updated Libgdx to a newer version to add gui to the game. This sadly broke the player sprite :/

This commit is contained in:
2020-04-11 07:55:19 -06:00
parent d6c54921d8
commit 57f806983e
80 changed files with 812 additions and 513 deletions

37
lwjgl3/build.gradle Normal file
View 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
}
}