update for cocos2d-x ver2.x