Reacting to Player Input

  • Arjan Egges


An important element of a game is that it reacts to what the player is doing. On iPhones or iPads, games mainly respond to touch input by the player, which also holds true for the games you develop while reading this book. Some games also use other input data such as the built-in accelerometer, which I’ll briefly discuss in this chapter. In order to deal with input data, you’re going to need a few new programming concepts, such as the if instruction, which will be introduced in this chapter.


Touch Screen Hide Status Boolean Variable Alternative Case Game World 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Arjan Egges 2015

Authors and Affiliations

  • Arjan Egges
    • 1
  1. 1.TBThe Netherlands

Personalised recommendations