Summary
In this chapter, we looked at the difference between the TrueType and bitmap fonts. Also, we saw different free tools and a professional tool called GlyphDesigner available to generate bitmap fonts. We then moved on to creating the HUD layer in which we added the score label, which was previously in the HelloWorldScene file, and this helped us to clean the code and make the layers a bit more organized.
The pause button was also added to the HUDLayer and successfully implemented, where if you pressed the pause button, the game would be paused and once the resume button is clicked, the game resumes from where it was left.
Finally, the scrolling background was also added, which made the game come to life by creating each image separately and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access