O'Reilly logo

Learning Cocos2d-x Game Development by Siddharth Shekar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Adding Main and Option Menu Scenes

In this chapter, we will be finally adding the main and option menu scenes to the game. Till now, when the game launches, it directly goes to the HelloWorldScene. Instead, we create the MainMenuScene that will be loaded first, which will have the buttons to open the game and options menu. Pressing the play button will launch the HelloWorldScene, and pressing the options button will open up the Options scene, where the player will be able to reset the score. A home button will be added to the HelloWorldScene and Options scene so that the player can get back to the MainMenuScene.

The topics covered in this chapter are as follows:

  • Creating the main menu scene
  • Loading the main menu scene at start of the app ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required