O'Reilly logo

Foundation Game Design with HTML5 and JavaScript by Rex van der Spuy

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

9781430247166_CO-01.jpg

Chapter 12

Touch and the Mouse

Most of the games you’ll make will be created and tested on a computer with a mouse and keyboard. But your finished games will almost certainly be played on touch-based interfaces, like tablets and mobile devices. In this chapter you’ll learn how to create game user interfaces that use both a mouse and touch interface to control the action.

In this chapter I’m going to show you a wide range of practical ways to control different kinds of game characters that you’ll be able to use for various kinds of projects. You’ll learn how to use rotation to control classic video-game objects like spaceships and cars, as well ...

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