cocos2d-x modified for my develop, more convenient.