O'Reilly logo

Learning iOS Game Programming by Michael Daley

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

12. User Input

This chapter covers capturing user input for use in Sir Lamorak’s Quest. For any game to work, there needs to be some kind of input from the player. This could be simply moving a game piece on a board game, selecting options, or moving a player around a 3D environment.

Until the arrival of the iPhone, most handheld consoles had one or more joypad controls built into the device, along with a number of buttons. Input from these would be processed by the game to identify what the player wants to do. There were some devices that also had basic touch capability using a stylus of some type, but this was not normally the primary input device for the player.

The iPhone introduced two unique methods for interacting with the device: multitouch ...

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