By the end of this chapter, we will have a fully working and beeping implementation of the Pong game. We will start the chapter off by looking at some collision detection theory which will be put in to practice near the end of the chapter. We will also learn about how we can detect and handle different versions of Android. We will then be in a position to study the SoundPool
class and the different ways we use it depending on the Android version the game is running on. At this point, we can then put everything we have learned into producing some more code to get the Pong ball bouncing and beeping as well as put the finishing touches on the game.
In summary, we will cover following topics:
Study the different types of collision detection
Learn how to handle different versions of Android
Learn how to use the Android
SoundPool
classFinish the Pong game
Mind your head!