Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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
Learn HTML5 by Creating Fun Games

You're reading from   Learn HTML5 by Creating Fun Games Learning should be fun, especially when it comes to getting to grips with HTML5 Game Development. Each chapter of this book teaches a new concept for learning HTML5 by helping you develop a relevant game. It's education without the effort.

Arrow left icon
Product type Paperback
Published in Jun 2013
Publisher Packt
ISBN-13 9781849696029
Length 374 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Rodrigo Silveira Rodrigo Silveira
Author Profile Icon Rodrigo Silveira
Rodrigo Silveira
Arrow right icon
View More author details
Toc

Summary


This chapter was dedicated to mobile development with the new HTML5 APIs available. We talked about the huge opportunity for game developers in the open web platform with regards to mobile devices as well as some of the main challenges associated with it. We talked about some best practices with mobile web development, which include degrading gracefully and enhancing progressively, designing for all finger sizes, saving battery life wherever possible, planning for offline game play, and offering a desktop version of your application.

The final two APIs presented in this chapter were CSS media queries and JavaScript touch events. Media queries allow us to check for other properties of the user agent viewing the document, such as viewport width, height, resolution, orientation, and so on. Depending on the properties set on the user agent executing our application, we can use media queries to load different CSS rules and documents, effectively modifying the document style at run time...

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 $19.99/month. Cancel anytime
Banner background image