Book Image

Learning iPhone Game Development with Cocos2D 3.0

By : Kirill Muzykov
Book Image

Learning iPhone Game Development with Cocos2D 3.0

By: Kirill Muzykov

Overview of this book

Table of Contents (19 chapters)
Learning iPhone Game Development with Cocos2D 3.0
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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

  • Using the text field to get the user text input