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.