1. adjust code refer to cocos2dx-3.0-pre