O'Reilly logo

HTML5 Game Development HOTSHOT by Makzan

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

Making the game mobile friendly

Making a game work on a mobile platform is not only about the screen resolution, but also about changing from a mouse cursor input to touches and a lot of performance tuning. In this task, we make the game work better on mobile phones by providing touch screen support.

Prepare for lift off

When we publish the game on the Web, we can have several settings to enhance the experience when playing on a mobile touch device. We add the following launch screen and app icon to the images folder:

Prepare for lift off

We need another library to help improve the clicking events on a DOM element in mobile devices. It eliminates a clicking delay that ...

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