This is a strange one! On my old desktop, I was able to build and run my libGDX project for HTML5 using the gradlew html:dist gradle command.

I uploaded the files to my site and everything worked well.

But on my laptop I synced the project via GitHub to Android Studio, ran the same command and it appears that the default ApplicationListener runs instead of my own custom one.

The only thing that appears is a red rectangle: http://johnathongoss.com/jaggybattles/

The desktop and android versions run and build fine on my laptop.

I'm using Android Studio and the latest version of libGDX.

Here is some code:

public class HtmlLauncher extends GwtApplication { @Override public ApplicationListener createApplicationListener() { return new MyGame(); } @Override public GwtApplicationConfiguration getConfig () { GwtApplicationConfiguration cfg = new GwtApplicationConfiguration(1280, 720); return cfg; } } //MyGame Class (Doesn't seem to get this far?) @Override public void create() { camera = new OrthographicCamera(VIRTUAL_WIDTH, VIRTUAL_HEIGHT); setScreen(new LoadingScreen(this)); //Loads the assets and sets Main Menu Screen }

I've had this problem before but it was because I didn't change the createApplicationListener() method to return my own custom ApplicationListener. Now it seems to return the right one, I really don't know what could be causing this.

I should point out I can't access my desktop computer anymore due to relocating.

Any advice would be gratefully received!

Edit: Loading Class

https://gist.github.com/jaggygames/79b1bd821f4203aadecfe5e8ba925150

Assets Class: https://gist.github.com/jaggygames/5b863f1692b0974b769d5694b5a3334f

MyDistance Font Class https://gist.github.com/ea7b5965488cd5672e9e7c20917df9a1