cocos2d-x compat