LibGDX and HTML5. What should I put into the server?

Hi guys!

I made a “test game” in libGDX and it works on html5 (tested using GWT developer plugin for chrome). Now I wonder…¿what should I upload to the host? I have the 3 projects folder:

testGame
testGame-desktop
testGame-android <-- just becouse the “assets” folder
testGame-html5

This has to be compiled so, I supose that I cant upload these folders. ¿I need a fat jar or what? Im kinda missed here. Also don’t know what page should I create/use to execute the game. In the “war” folder there is a index.html. Is that the page that starts the game on the browser?

Thanks guys for the supply, really dont know what to do with this.

If you are doing hte LibGDX’s HTML5 version.

Once you have done the gwt-compile (right click the top level -html project) go to “google”, then “GWT-compile”

Then this (not the red folders)

testGame-html5
–.settings
–gwt-unitCache
–src
–war <— any files in here, such as index.html
----assets <— this folder
----testgame.GwtDefintiion <— this folder
----WEB-INF <-- not this folder

Thank you very much! Worked!

I had to include the testGame.GwtDefinition, btw.

Oops I had it backwards

you keep the gwtDefinition. You omit the web-inf file

https://code.google.com/p/libgdx/wiki/ProjectSetupNew

[quote]Right click the HTML5 project, Google -> GWT Compile
Once compiled, place the contents of the war/ directory into a directory your web server can serve. Omit the WEB-INF folder.
Point your browser at an URL which will display the .html file.
[/quote]