Cocos2d-x sources analysis