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

Using buttons


Creating a good user interface and convenient navigation is very important! Equally important is to take into account that we want the player to stay in our game scene for most of the time and actually play the game. If the game has a bad or obscure user interface or navigation, the player might not even stay in the game for long enough to actually play it.

If the player needs to tap ten times to restart the game after each failure, then the player won't play the game for long. This will be pretty evident; if you open the App Store, you can read all the negative reviews of any game with a bad user interface.

After labels, the second most commonly used user interface controls are buttons. They are used everywhere, and it is logical that we will start our review of Cocos2D controls by adding some buttons, which are represented by the CCButton class.