Merged changes from original repo and modified some web port releated files
This commit is contained in:
@@ -1,20 +1,17 @@
|
||||
apply plugin: 'java-library'
|
||||
|
||||
dependencies {
|
||||
implementation "com.badlogicgames.gdx:gdx:$gdxVersion"
|
||||
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion"
|
||||
implementation "com.github.xpenatan.gdx-teavm:backend-teavm:$gdxTeaVMVersion"
|
||||
implementation "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
|
||||
implementation "com.github.xpenatan.gdx-teavm:gdx-freetype-teavm:$gdxTeaVMVersion"
|
||||
implementation "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
|
||||
implementation project(':core')
|
||||
implementation "org.teavm:teavm-jso:$teaVMVersion"
|
||||
implementation "org.teavm:teavm-core:$teaVMVersion"
|
||||
}
|
||||
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
maven { url 'https://teavm.org/maven/repository' }
|
||||
mavenCentral()
|
||||
maven { url = uri("https://central.sonatype.com/repository/maven-snapshots/") }
|
||||
maven { url = uri("https://jitpack.io") }
|
||||
maven { url 'https://teavm.org/maven/repository' }
|
||||
}
|
||||
|
||||
tasks.register('compileClient', JavaExec) {
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
*
|
||||
* Modifications made by Konsthol on 13/4/25:
|
||||
* - Adjusted to compile Shattered Pixel Dungeon
|
||||
* Modifications made by Konsthol on 27/9/25:
|
||||
* - Adjusted to be used with gdx-teavm 1.2.4
|
||||
*
|
||||
* Copyright 2022 Daniel Hollingsworth
|
||||
*/
|
||||
@@ -25,6 +27,8 @@ import org.teavm.vm.TeaVMOptimizationLevel;
|
||||
public class Compile {
|
||||
|
||||
public static void main(String[] args) throws IOException {
|
||||
File webappDir = new File("../release/webapp");
|
||||
Configure.deleteDir(webappDir);
|
||||
Configure.configure();
|
||||
|
||||
TeaVMTool tool = new TeaVMTool();
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
*
|
||||
* Modifications made by Konsthol on 13/4/25:
|
||||
* - Adjusted to compile Shattered Pixel Dungeon
|
||||
* Modifications made by Konsthol on 27/9/25:
|
||||
* - Adjusted to be used with gdx-teavm 1.2.4
|
||||
*
|
||||
* Copyright 2022 Daniel Hollingsworth
|
||||
*/
|
||||
@@ -27,12 +29,9 @@ import org.teavm.vm.TeaVMOptimizationLevel;
|
||||
|
||||
public class Configure {
|
||||
|
||||
public static void main(String[] args) throws IOException {
|
||||
deleteDir(new File("../release/webapp"));
|
||||
configure();
|
||||
}
|
||||
public static void main(String[] args) {}
|
||||
|
||||
private static void deleteDir(File dir) {
|
||||
public static void deleteDir(File dir) {
|
||||
File[] files = dir.listFiles();
|
||||
if (files != null) {
|
||||
for (File file : files) {
|
||||
@@ -48,8 +47,8 @@ public class Configure {
|
||||
conf.shouldGenerateAssetFile = true;
|
||||
conf.webappPath = new File("../release").getAbsolutePath();
|
||||
conf.targetType = TeaTargetType.JAVASCRIPT;
|
||||
//conf.targetType = TeaTargetType.WEBASSEMBLY;
|
||||
TeaBuilder.config(conf);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ public class TeaVMLauncher {
|
||||
}
|
||||
|
||||
private static void initializeServices() {
|
||||
Game.version = "3.2.3";
|
||||
Game.versionCode = 868;
|
||||
Game.version = "3.2.4";
|
||||
Game.versionCode = 875;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user