add support to cocos2dx 3.x