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 ...