Merged changes from original repo and modified some web port releated files

This commit is contained in:
2025-09-27 22:13:02 +03:00
parent ac0d4784d9
commit 6673ecaa31
57 changed files with 1294 additions and 300 deletions

View File

@@ -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();

View File

@@ -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);
}
}

View File

@@ -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;
}
}