xpenatan/gdx-teavm

Issues in Browser the newest build

aallnneess opened this issue · 2 comments

Hello :-)

i always take the same jar:

with the build from 09.01.22 my game works fine:

everrunteavm090122

with the latest commits (today) i get issues inside browser:

everrunteavm120122

image

image

public class HyperLap2DTest {

    public static void main(String[] args) {
        URL appJarAppUrl = null;
        try {
            appJarAppUrl = new File("c:/GitHub/gdx-html5-tools/everrun1.jar").toURI().toURL();
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }

        TeaBuildConfiguration teaBuildConfiguration = new TeaBuildConfiguration();
        teaBuildConfiguration.assetsPath.add(new File("c:/GitHub/new liftoff/assets"));
        teaBuildConfiguration.webappPath = new File("c:/GitHub/gdx-html5-tools").getAbsolutePath();
        teaBuildConfiguration.obfuscate = false;
        teaBuildConfiguration.mainApplicationClass = "com.tutorial.artemisTestlab.GameMain";
        teaBuildConfiguration.additionalClasspath.add(appJarAppUrl);

        teaBuildConfiguration.reflectionInclude.add("games.rednblack.editor.renderer");
        teaBuildConfiguration.reflectionInclude.add("games.rednblack.h2d.extension.spine");
        teaBuildConfiguration.reflectionInclude.add("games.rednblack.h2d.extension.talos");
        teaBuildConfiguration.reflectionInclude.add("com.tutorial.artemisTestlab.components");
        teaBuildConfiguration.reflectionInclude.add("com.tutorial.artemisTestlab.systems");
        teaBuildConfiguration.reflectionInclude.add("com.tutorial.artemisTestlab.Scripts");
        teaBuildConfiguration.reflectionInclude.add("com.ray3k.stripe.scenecomposer");

        teaBuildConfiguration.reflectionInclude.add("com.artemis");
        teaBuildConfiguration.reflectionInclude.add("com.talosvfx.talos.runtime");

        teaBuildConfiguration.reflectionExclude.add("com.artemis.annotation");
        teaBuildConfiguration.reflectionExclude.add("com.artemis.utils.reflect");

        TeaBuilder.build(teaBuildConfiguration);
    }
}

Do changes have to be made again?

thanks

Hi, no need. The idea is that if a script fails to load it will just ignore. For some reason it didnt work.

I commented the bullet part in last commit and need to find a better way.

Hey, yes it worked again fine, thanks 👍