Implementing the game GUI
In this last part of the chapter, we are going to implement the game's GUI and add it to the scene. The GUI will display the achieved score, extra lives, and an FPS counter.
We will need to load a bitmap font before we are able to write any text output to the screen. Fortunately, Libgdx provides a default font (Arial 15pt) that we can use. Copy the two files
The Libgdx font files can be downloaded on Packt's website at: http://www.packtpub.com/learning-libgdx-game-development/book
This is how Libgdx's default bitmap font looks:
Add the following import ...