summaryrefslogtreecommitdiff
path: root/html/src/main/java/kz/ilotterytea/frogartha/gwt/GwtLauncher.java
diff options
context:
space:
mode:
Diffstat (limited to 'html/src/main/java/kz/ilotterytea/frogartha/gwt/GwtLauncher.java')
-rw-r--r--html/src/main/java/kz/ilotterytea/frogartha/gwt/GwtLauncher.java28
1 files changed, 28 insertions, 0 deletions
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();
+ }
+}