Chapter 5. HUD, Parallax Background, and the Pause Button
In this chapter, we will see how to create a custom font for the game, like the font we added in the last chapter. We will create a new layer for HUD and the pause button. We will also create a scrolling background layer and remove the current static image we have been using so far.
We will cover the following topics in this chapter:
- Text and fonts
- Creating HUD layer and displaying as well as updating scores
- Adding the pause and resume buttons
- Implementing pause and resume in the game
- Adding the scrolling layer class
- Creating the parallax scrolling layer