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

Get Foundation Game Design with HTML5 and JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.