Port to Cocos2d-x