From 043834fa0adf502f61ba09fe312fa3e90b8a6bcc Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Mon, 20 Jan 2025 19:29:50 +0500 Subject: initial commit --- .../kz/ilotterytea/frogartha/gwt/GwtLauncher.java | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 html/src/main/java/kz/ilotterytea/frogartha/gwt/GwtLauncher.java (limited to 'html/src/main/java/kz/ilotterytea/frogartha/gwt') diff --git a/html/src/main/java/kz/ilotterytea/frogartha/gwt/GwtLauncher.java b/html/src/main/java/kz/ilotterytea/frogartha/gwt/GwtLauncher.java new file mode 100644 index 0000000..a4e7ea3 --- /dev/null +++ b/html/src/main/java/kz/ilotterytea/frogartha/gwt/GwtLauncher.java @@ -0,0 +1,28 @@ +package kz.ilotterytea.frogartha.gwt; + +import com.badlogic.gdx.ApplicationListener; +import com.badlogic.gdx.backends.gwt.GwtApplication; +import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; +import kz.ilotterytea.frogartha.FrogarthaGame; + +/** + * Launches the GWT application. + */ +public class GwtLauncher extends GwtApplication { + @Override + public GwtApplicationConfiguration getConfig() { + // Resizable application, uses available space in browser with no padding: + GwtApplicationConfiguration cfg = new GwtApplicationConfiguration(true); + cfg.padVertical = 0; + cfg.padHorizontal = 0; + return cfg; + // If you want a fixed size application, comment out the above resizable section, + // and uncomment below: + //return new GwtApplicationConfiguration(640, 480); + } + + @Override + public ApplicationListener createApplicationListener() { + return FrogarthaGame.getInstance(); + } +} -- cgit v1.2.3