The HTML5 version of Freegemas is a project I've wanted to get around to finish for a long time. Finally, it greatly pleases me to say, it's done and you can play it right here, right now.

Play Freegemas

Freegemas HTML5 runs on any browser that supports WebGL. If you"re an unlucky Internet Explorer user, you then deserve to be deprived of the joys Freegemas has to offer. Anyways! As some of you may already know, my work here consisted in simply porting the original Gosu game to Java and libgdx so it"d run on JVM desktops and Android. At that point in time, libgdx HTML5 support was on the works which explains why there wasn't a browser release in the first place. Luckily enough, this is not the case anymore.

With libgdx's magical GWT backend up and running, deploying the WebGL version wasn't too much of a headache. Nevertheless, I"ll shamelessly count it as my #OneGameAMonth January project. Truth be told, I did improve performance quite a bit after taking a look at the VisualVM profiling tool, which will feed a future article. If my current knowledge of the Java language is poor to say the least, when I first released Freegemas, it was just hideous. As a consequence, memory allocation was running a bit wild.

Improvements summary:

  • Performance improvements
  • Fixed crash in board check
  • Added German language (thanks to just4phil for that pull request)