summaryrefslogtreecommitdiffstats
path: root/html/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-10 22:59:32 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-10 22:59:32 +0200
commit86e0e122a475dfd4f627fc95a9458e7527d72a00 (patch)
tree6c85c5b28d1f94cf146b16039f6df27aeeb484d3 /html/src/ch/asynk/tankontank
downloadRustAndDust-86e0e122a475dfd4f627fc95a9458e7527d72a00.zip
RustAndDust-86e0e122a475dfd4f627fc95a9458e7527d72a00.tar.gz
Initial commit
Diffstat (limited to 'html/src/ch/asynk/tankontank')
-rw-r--r--html/src/ch/asynk/tankontank/GdxDefinition.gwt.xml11
-rw-r--r--html/src/ch/asynk/tankontank/GdxDefinitionSuperdev.gwt.xml15
-rw-r--r--html/src/ch/asynk/tankontank/client/HtmlLauncher.java19
3 files changed, 45 insertions, 0 deletions
diff --git a/html/src/ch/asynk/tankontank/GdxDefinition.gwt.xml b/html/src/ch/asynk/tankontank/GdxDefinition.gwt.xml
new file mode 100644
index 0000000..6f24d10
--- /dev/null
+++ b/html/src/ch/asynk/tankontank/GdxDefinition.gwt.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit trunk//EN" "http://google-web-toolkit.googlecode.com/svn/trunk/distro-source/core/src/gwt-module.dtd">
+<module rename-to="html">
+ <inherits name='com.badlogic.gdx.backends.gdx_backends_gwt' />
+ <inherits name='com.badlogic.gdx.physics.box2d.box2d-gwt' />
+
+ <inherits name='TankOnTank' />
+ <entry-point class='ch.asynk.tankontank.client.HtmlLauncher' />
+
+ <set-configuration-property name="gdx.assetpath" value="../android/assets" />
+</module>
diff --git a/html/src/ch/asynk/tankontank/GdxDefinitionSuperdev.gwt.xml b/html/src/ch/asynk/tankontank/GdxDefinitionSuperdev.gwt.xml
new file mode 100644
index 0000000..2d4cf8c
--- /dev/null
+++ b/html/src/ch/asynk/tankontank/GdxDefinitionSuperdev.gwt.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit trunk//EN" "http://google-web-toolkit.googlecode.com/svn/trunk/distro-source/core/src/gwt-module.dtd">
+<module rename-to="html">
+ <inherits name='com.badlogic.gdx.backends.gdx_backends_gwt' />
+ <inherits name='com.badlogic.gdx.physics.box2d.box2d-gwt' />
+
+ <inherits name='TankOnTank' />
+ <entry-point class='ch.asynk.tankontank.client.HtmlLauncher' />
+
+ <add-linker name="xsiframe"/>
+ <set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE'/>
+ <set-configuration-property name="devModeRedirectEnabled" value="true"/>
+
+ <set-configuration-property name="gdx.assetpath" value="../android/assets" />
+</module>
diff --git a/html/src/ch/asynk/tankontank/client/HtmlLauncher.java b/html/src/ch/asynk/tankontank/client/HtmlLauncher.java
new file mode 100644
index 0000000..70b4814
--- /dev/null
+++ b/html/src/ch/asynk/tankontank/client/HtmlLauncher.java
@@ -0,0 +1,19 @@
+package ch.asynk.tankontank.client;
+
+import com.badlogic.gdx.ApplicationListener;
+import com.badlogic.gdx.backends.gwt.GwtApplication;
+import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration;
+import ch.asynk.tankontank.TankOnTank;
+
+public class HtmlLauncher extends GwtApplication {
+
+ @Override
+ public GwtApplicationConfiguration getConfig () {
+ return new GwtApplicationConfiguration(480, 320);
+ }
+
+ @Override
+ public ApplicationListener getApplicationListener () {
+ return new TankOnTank();
+ }
+} \ No newline at end of file