works with cocos2d-x 3.1