Book Image

Building Android Games with Cocos2d-x

By : Raydelto Hernandez
Book Image

Building Android Games with Cocos2d-x

By: Raydelto Hernandez

Overview of this book

Table of Contents (16 chapters)
Building Android Games with Cocos2d-x
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 5. Handling Text and Fonts

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:

  • Creating TrueType font labels

  • Adding label effects

  • Creating system fonts

  • Creating bitmap font labels