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
Using the text field to get the user text input