LonamiWebs/Klooni1010

HTML support

costimuraru opened this issue · 5 comments

Awesome job on this project! Very instructive.
I managed to make it work on Android and iOS, but on HTML, I get the following error.

I see that GdxDefinition.gwt.xml already contains:
<set-configuration-property name="gdx.assetpath" value="../android/assets" />

com.badlogic.gdx.utils.SerializationException: Error reading file: skin/uiskin.json

Following https://stackoverflow.com/questions/31574577/libgdx-error-reading-file-uiskin-json, I tried removing parts of the uiskin.json, but then I get: Uncaught Error: java.lang.RuntimeException: com.badlogic.gdx.utils.GdxRuntimeException: Error loading font file: font/x0.75/geosans-light64.fnt

screenshot 2018-10-28 11 50 28

screenshot 2018-10-28 12 26 45

Thanks! I have never tried building for HTML5 and don't have any interest on fixing this issue myself. However, we can leave it open in case someone is up for the job :)

A new gradle build script should be made (or generated through libGDX's tool) to work on the latest version of gradle (using gretty instead of jetty). After it's ready, it should be tested and ensured that it works before making a commit.

Is it okay if I try working on this issue and making your game compatible for HTML5?

Sure, that would be awesome to see! Feel free to work on it.

I've re-ran the libGDX setup (9c6be35) and left the html/ folder it generates back, so it should be an easier starting point, if anyone wants to try.