It is very common in our games to add text for displaying information to the player. This could be done by using either the TrueType fonts or bitmap fonts, which will allow us more flexibility, and is, indeed, the most used type of font in professional games because it allows us to give a custom look to our games. The following topics will be covered in this chapter:
Adding text by using the TrueType font is really straightforward. Open the
PauseScene.cpp implementation file that we have created in Chapter 2, Graphics. In the
init method, you will see that we have created an instance of ...