June 2014
Beginner to intermediate
434 pages
9h 49m
English
We will start with adding a pause dialog to allow the player to pause the game:
Resources and call it Dialogs. Then, open the book's supporting files in Chapter_09/Assets/Dialogs and add all the images to that group.Scenes group. Name the class PauseDialog and make it a subclass of CCNode.Note that it is a subclass of CCNode not CCScene. We have used a similar approach when we created the HUDLayer class. You can read Chapter 6, Rendering Text, to refresh your memory. We are going to use CCNode as a base class for all dialogs.
PauseDialog.h file and add the following property. It will allow the object, which creates the dialog ...