June 2014
Beginner to intermediate
434 pages
9h 49m
English
There are a few more dialogs that we need to add quickly. The first one is the dialog that is displayed when we win or lose the game. In this dialog, we will display the gathered statistics and again the same buttons to restart or exit the game. Otherwise, you cannot do anything when you win or lose.
CCNode subclass called WinLoseDialog. It is better to place this too in the Scenes group in order to keep things more organized.GameStats.h file and add the timeSpent property; we will use it to count the time that the player spent to beat or lose the level:@property (nonatomic, assign) float timeSpent;
GameStats.m file and initialize ...