code to learn Cocos2d-x