O'Reilly logo

Beginning HTML5 Games with CreateJS by Brad Manderscheid

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 12

image

Building for Mobile Browsers

One of the greatest advantages of using HTML5 for your games is that you can target mobile browsers. When considering mobile, many factors come into play. One of the biggest challenges you’ll face with mobile is preparing for the vast variety of screen sizes across devices.

In this chapter, you’ll learn how to prepare your canvas game to scale and fill as much screen as possible on handheld devices and even desktop displays. You’ll also learn how you can distribute your game over the Web by using the Add to Home Screen option in iOS Safari. To put this into practice, you will be adding code to Fakezee (see ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required