Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML support #56

Open
costimuraru opened this issue Oct 28, 2018 · 5 comments
Open

HTML support #56

costimuraru opened this issue Oct 28, 2018 · 5 comments

Comments

@costimuraru
Copy link

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
Copy link
Member

Lonami commented Oct 28, 2018

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 added a commit that referenced this issue Sep 5, 2019
Jetty was deprecated and should be replaced with Gretty, but
it didn't work for HTML anyway (#56) so instead I have decided
to remove it entirely for now (it can always be added back in
a future if someone is willing to do so).
@Lonami Lonami changed the title Not working on HTML5? HTML support Sep 5, 2019
@Lonami
Copy link
Member

Lonami commented Sep 5, 2019

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
Copy link
Contributor

jaeheonshim commented Dec 28, 2019

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

@Lonami
Copy link
Member

Lonami commented Dec 28, 2019

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

@Lonami
Copy link
Member

Lonami commented Mar 29, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@costimuraru @Lonami @jaeheonshim and others