On July 20 , 2012 , during a midnight showing of the film at the Century 16 cinema in Aurora , Colorado , a gunman wearing a gas mask opened fire inside the theater , killing 12 people and injuring 58 others .