Chapter 11: Collisions, Sound Effects, and Supporting Different Versions of Android
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 into practice toward the end of the chapter. We will also learn 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 to the game.
In summary, we will cover the following topics:
- Studying the different types of collision detection
- Learning how to handle different versions of Android
- Learning how to use the Android
SoundPool
class - Finishing the Pong game
Mind your...