com.github.xpenatan.gdx.backends.teavm.TeaLauncher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backend-teavm Show documentation
Show all versions of backend-teavm Show documentation
Tool to generate libgdx to javascript using teaVM
package com.github.xpenatan.gdx.backends.teavm;
import com.badlogic.gdx.ApplicationListener;
public class TeaLauncher {
public static void main(String[] args) {
try {
TeaApplicationConfiguration config = new TeaApplicationConfiguration("canvas");
Object appListener = getApplicationListener();
if(appListener != null) {
ApplicationListener listener = (ApplicationListener)appListener;
new TeaApplication(listener, config);
}
}
catch(Throwable t) {
t.printStackTrace();
throw t;
}
}
private static native Object getApplicationListener();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy