The new deal comes as Mazin is writing and executive producing an adaptation of the hit video game The Last of Us for HBO.