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 - adding a menu with texts to the main scene

We will start by making a very simple menu for the main menu. If you remember well, we already made this scene at the beginning of the previous chapter. Although, we left it blank and skipped over it so we could focus on the game itself. Well, now we are going to go back to this scene and we are going to complete it this time.

What we want to accomplish here is to have this scene present the player with a menu from which he can choose some options. In this case he will be able to choose from: Starting a new game, going to the options menu, and going to the "About" screen.

  1. Placing menus is quite tedious, if you want them to be positioned correctly. So let's make the main menu our first ...

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