The genre's roots can be traced back to earlier shooting games, including target shooting electro-mechanical games of the mid-20th-century and the early mainframe game Spacewar! The shoot 'em up genre was established by the hit arcade game Space Invaders, which popularised and set the general template for the genre in 1978, and spawned many clones.