Pong | Adding some pop.
The core mechanics of the game are now complete, but we can extend the development to embed what we have learned and create a better game. These extensions are presented in three levels of increasing difficulty we call, 'snap', 'crackle' and 'pop'. You are now on your own, but none of these extensions require you to learn anything new that was not introduced in this tutorial. Challenge yourself to see how far you can get using the stages in the tutorial for reference.
- Add random sound effects when a goal is scored to add variety.
You learned about random numbers in stage 5, and sound effects in stage 9. - The collision response between the ball and the paddle is not perfect. The ball can get trapped underneath or on top of the paddle bouncing many times off the paddle before being released. Can you fix it?
Collision response code was written in stage 7.