Advanced Input Handling

Arjan Egges · Apress eBooks · 2015

In this chapter, you will create a more advanced input handling mechanism. At the same time, a few important programming concepts, such as arrays and dictionaries, will be introduced. In the Painter game, input handling was rather basic. You only kept track of the last position that the player touched. For Painter, that was sufficient since the player plays the game using a single finger. In more complex games, this basic method of input handling is not enough. In particular, in Tut’s Tomb, the player may use multiple fingers to drag objects over the screen. In this chapter, you are going to extend the InputHelper class and make it suitable for handling multitouch input. 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.

Read the paper · More papers on PaperTik