summaryrefslogtreecommitdiff
path: root/html/src/main/java/kz/ilotterytea
diff options
context:
space:
mode:
Diffstat (limited to 'html/src/main/java/kz/ilotterytea')
-rw-r--r--html/src/main/java/kz/ilotterytea/frogartha/GdxDefinition.gwt.xml35
-rw-r--r--html/src/main/java/kz/ilotterytea/frogartha/GdxDefinitionSuperdev.gwt.xml9
-rw-r--r--html/src/main/java/kz/ilotterytea/frogartha/gwt/GwtLauncher.java28
3 files changed, 72 insertions, 0 deletions
diff --git a/html/src/main/java/kz/ilotterytea/frogartha/GdxDefinition.gwt.xml b/html/src/main/java/kz/ilotterytea/frogartha/GdxDefinition.gwt.xml
new file mode 100644
index 0000000..3f287d1
--- /dev/null
+++ b/html/src/main/java/kz/ilotterytea/frogartha/GdxDefinition.gwt.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.11.0//EN" "https://www.gwtproject.org/doctype/2.11.0/gwt-module.dtd">
+<module rename-to="html">
+ <!-- Paths to source are relative to this file and separated by slashes ('/'). -->
+ <source path="" />
+
+ <!-- "Inherits" lines are how GWT knows where to look for code and configuration in other projects or libraries. -->
+ <inherits name="com.badlogic.gdx.backends.gdx_backends_gwt" />
+ <inherits name="GLTF" />
+ <inherits name="kz.ilotterytea.frogartha.FrogarthaGame" />
+ <inherits name="kz.ilotterytea.frogartha.Shared" />
+
+ <!-- You must change this if you rename packages later, or rename GwtLauncher. -->
+ <entry-point class="kz.ilotterytea.frogartha.gwt.GwtLauncher" />
+
+ <!-- Reflection includes may be needed for your code or library code. Each value is separated by periods ('.'). -->
+ <!-- You can include a full package by not including the name of a type at the end. -->
+ <!-- This is a feature of libGDX, so these lines go after the above "inherits" that brings in libGDX. -->
+ <!-- <extend-configuration-property name="gdx.reflect.include" value="fully.qualified.TypeName" /> -->
+
+ <!-- Rarely, projects may need to include files but do not have access to the complete assets. -->
+ <!-- This happens for libraries and shared projects, typically, and the configuration goes in that project. -->
+ <!-- The value is a path, separated by forward slashes, where the root is your html project's resources root. -->
+ <!-- You can include individual files like this, and access them with Gdx.files.classpath("path/to/file.png") : -->
+ <!-- This is also a feature of libGDX, so these lines go after the above "inherits" that brings in libGDX. -->
+ <!-- <extend-configuration-property name="gdx.files.classpath" value="path/to/file.png" /> -->
+
+ <!-- You usually won't need to make changes to the rest of this. -->
+ <set-configuration-property name="gdx.assetpath" value="../assets" />
+ <set-configuration-property name="xsiframe.failIfScriptTag" value="FALSE"/>
+ <!-- These two lines reduce the work GWT has to do during compilation and also shrink output size. -->
+ <set-property name="user.agent" value="gecko1_8, safari"/>
+ <collapse-property name="user.agent" values="*" />
+ <!-- Remove the "user.agent" lines above if you encounter issues with Safari or other Gecko browsers. -->
+</module> \ No newline at end of file
diff --git a/html/src/main/java/kz/ilotterytea/frogartha/GdxDefinitionSuperdev.gwt.xml b/html/src/main/java/kz/ilotterytea/frogartha/GdxDefinitionSuperdev.gwt.xml
new file mode 100644
index 0000000..86d6eac
--- /dev/null
+++ b/html/src/main/java/kz/ilotterytea/frogartha/GdxDefinitionSuperdev.gwt.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.11.0//EN" "https://www.gwtproject.org/doctype/2.11.0/gwt-module.dtd">
+<module rename-to="html">
+ <inherits name="kz.ilotterytea.frogartha.GdxDefinition" />
+ <collapse-all-properties />
+ <add-linker name="xsiframe"/>
+ <set-configuration-property name="devModeRedirectEnabled" value="true"/>
+ <set-configuration-property name="xsiframe.failIfScriptTag" value="FALSE"/>
+</module> \ No newline at end of file
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();
+ }
+}