LonamiWebs / Klooni1010

libGDX game based on the original 1010!
https://lonamiwebs.github.io/klooni
GNU General Public License v3.0
234 stars 70 forks source link

HTML support #56

Open costimuraru opened 5 years ago

costimuraru commented 5 years ago

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
Lonami commented 5 years ago

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 :)

Lonami commented 5 years ago

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.

jaeheonshim commented 4 years ago

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

Lonami commented 4 years ago

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

Lonami commented 4 years ago

I've re-ran the libGDX setup (https://github.com/LonamiWebs/Klooni1010/commit/9c6be35369a7bb07d11838e4cc84f7cb3efcf338) and left the html/ folder it generates back, so it should be an easier starting point, if anyone wants to try.