Book Image

Learning Cocos2d-x Game Development

By : Siddharth Shekar
Book Image

Learning Cocos2d-x Game Development

By: Siddharth Shekar

Overview of this book

Table of Contents (19 chapters)
Learning Cocos2d-x Game Development
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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 moving at different speeds.

In the next chapter, we will look at character animation basics and some tools that are used in the industry to create animations and implement these tools in the game.