All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.xpenatan.gdx.backends.teavm.TeaLauncher Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
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