O'Reilly logo

Cocos2d for iPhone 0.99 Beginner's Guide by Pablo Ruiz

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

Time for action - creating the options menu

Let's create our game's options menu. This menu will hold all the preferences the player might want to change. For example, here you would allow him to:

  • Turn the music on/off
  • Turn the sounds on/off
  • Choose a difficulty level
  • Change any other settings of your particular game

We are now going to create the OptionsScene, which will contain some of these options. We'll start by allowing the player to choose the game's difficulty from the options menu. However, first things first. We have to create the corresponding scene and layer, make it appear when touching the corresponding button on the main menu, and then we can start playing with our new CCMenuItemToggle toy.

  1. Make the options menu item in the MainMenuScene ...

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