In this chapter, we will learn how to add collision to detect contact between the ball and the enemy; this will determine the lose condition. We will also check the contact between the ball and the ground to find out whether the player can jump or not. Then, we will finalize the gameplay loop.
Once the gameplay loop is complete, we will be able to add text rendering to show the player their score. To display the necessary text, we will use the FreeType library. This will load in the characters from the font file.
We will also add some basic lighting to the objects in the scene. Lighting will be calculated using the Phong lighting model, and we will cover how this is implemented in practice. To finish the gameplay loop, we will have to add an enemy.
In this chapter, we will cover the following topics:
- Adding a RigidBody name...