Some tool code for cocos2d-x 2.x.x