Chapter 5. Scenes and Menus

In this chapter, we will cover the following topics:

  • Switching scenes
  • Transitioning between scenes
  • Using CCLayerMultiplex
  • Using CCLabel
  • Using CCMenu
  • Creating shadowed menu labels
  • UIKit alert dialogs
  • Wrapping UIKit
  • Creating draggable menu windows
  • Creating a horizontal scrollable menu
  • Creating a vertical sliding menu grid
  • Creating a loading screen with indicator
  • Creating a minimap

Introduction

All games have auxillary Graphical User Interface (GUI) requirements like menus and in-game Heads-Up Displays (HUD). In this chapter, we will explain the techniques used to create these elements as well as how to incorporate them into an underlying structure of scenes.

Get Cocos2d for iPhone 1 Game Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.