Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

4. Game Controls > Moving in the up direction - Pg. 115

Game Controls So far we have completed the first half of our game in the previous chapter. We started on developing the initial structure for the project by introducing the game objects to the screen. Currently, the paddle and ball movement is inactive, but everything displayed in the simulator is scaled accordingly to the original game design. The last phase of completing this tutorial is to add in all the actions that will occur in the game, including object movement and updating the score. 4 In this chapter we will cover: Moving the paddle using touch events and accelerometer Collision detection between all game objects in the scene Removing objects upon collision detection