To create the main menu scene, first create a new project and follow the steps in Chapter 1, Sprites and Animations, to load the
MainScene file upon loading the game. Also, don't forget to make changes to the
CCBReader.m file and change the folder search parameter.
For this step, no additional steps are required. Later in the chapter, we will discuss how to make more complex scenes with the custom init function.
For now, we will use
MainScene as the
MainMenu scene and start populating it with text, buttons, and functions to transition between the scenes.
As of now, we have a
MainMenu.h file that looks similar to the following:
@interface MainScene : CCNode +(CCScene*)scene; @end
We also have a