Looking closer – HTML

The last platform we are going to look at is HTML. This might perplex you even more than iOS did. How on earth do we go from Java to HTML! Luckily, Google has the answer—Google Web Toolkit (GWT). By using GWT will convert Java classes into a JavaScript equivalent.

However, there are some limitations with the HTML export. I would like to add that HTML exports are getting smaller with each release and the smaller releases are the support for certain Java classes. You might find sometimes that there isn't a JavaScript equivalent available and GWT will refuse to compile the code. But having said that, I have used it a lot before and there are always ways around this, and LibGDX has full GWT support from the onset. So as long as ...

Get LibGDX Game Development By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.