update Cocos2d.