Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
LibGDX Game Development By Example

You're reading from   LibGDX Game Development By Example Learn how to create your very own game using the libGDX cross-platform framework

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher
ISBN-13 9781785281440
Length 280 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
James Cook James Cook
Author Profile Icon James Cook
James Cook
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Getting to Know LibGDX FREE CHAPTER 2. Let's Get These Snakes Out of This Book! 3. Making That Snake Slick 4. What the Flap Is the Hype About? 5. Making Your Bird More Flightworthy 6. Onto the Next Platform...Game 7. Extending the Platform 8. Why Are All the Birds Angry? 9. Even Angrier Birds! 10. Exporting Our Games to the Platforms 11. Third-party Services Index

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 you don't stray too far from LibGDX, you will be able to create an HTML game!

Check out the GWT website, http://www.gwtproject.org/, for more information.

Getting ready to launch

Like with the other plaforms, HTML has it&apos...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime