Chapter 9. User Interface and Navigation

Almost every game these days makes good use of different user interface elements such as buttons, sliders, and menus. And of course, most of the games consist of more than one game scene. In this chapter, we're going to review how Cocos2D can help us build a good user interface and navigate between scenes.

In this chapter, we are going to review the following topics:

  • Adding buttons, and handling events when a player taps them
  • Creating toggle buttons to represent on/off switches
  • Animating the user interface's appearance using Cocos2D actions
  • Creating more scenes and navigating between them using transitions
  • Using the scroll view to fit more contents in a single scene
  • Using the table view to represent table data ...

Get Learning iPhone Game Development with Cocos2D 3.0 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.