A extension for cocos2d-x.