Study cocos2d-x example.