Creating buttons
Buttons in one form or another are used in most games. It is easy to implement a simple button solution using Cocos2d but creating one that supports multiple simultaneous button touches is more difficult.
In this recipe, we will implement a simple but effective solution to this problem.