Spacewar (video game)
|Developer(s)||Steve Russell et al.|
|Genre(s)||Space combat simulation, Shoot 'em up|
|Mode(s)||Two players, simultaneously (only)|
Spacewar (stylized "Spacewar!") is one of the earliest known digital computer games. It is a two-player game, with each player taking control of a spaceship and attempting to destroy the other. A star in the center of the screen pulls on both ships and requires maneuvering to avoid falling into it. In an emergency, a player can enter hyperspace to return at a random location on the screen, but only at the risk of exploding if it is used too often.
Steve "Slug" Russell, Martin "Shag" Graetz, and Wayne Wiitanen of the fictitious "Hingham Institute" conceived of the game in 1961, with the intent of implementing it on a DEC PDP-1 at the Massachusetts Institute of Technology. After Alan Kotok obtained some sine and cosine routines from DEC, Russell began coding, and by February 1962 had produced his first version. It took approximately 200 hours of work to create the initial version. Additional features were developed by Dan Edwards, Peter Samson, and Graetz.
In the fall of 1961, a PDP-1 was installed in the "kludge room" of the Electrical Engineering Department, and even before its arrival, a group of students at a tenement on Hingham Street had been brainstorming ideas for programs that would demonstrate the new computer's capabilities in a compelling way. "We had this brand new PDP-1," Russell told Rolling Stone in a 1972 interview. "Somebody had built some little pattern-generating programs which made interesting patterns like a kaleidoscope. Not a very good demonstration. Here was this display that could do all sorts of good things! So we started talking about it, figuring what would be interesting displays. We decided that probably you could make a two-dimensional maneuvering sort of thing, and decided that naturally the obvious thing to do was spaceships." Russell had just finished reading the Lensman series by E.E. Smith and thought the stories would make a good basis for the program. "His heroes had a strong tendency to get pursued by the villain across the galaxy and have to invent their way out of their problem while they were being pursued. That sort of action was the thing that suggested Spacewar. He had some very glowing descriptions of spaceship encounters and space fleet maneuvers." Other influences cited by Graetz include E.E. Smith's Skylark novels and Japanese sci-fi tokusatsu movies.
The basic gameplay of Spacewar involves two armed spaceships called "the needle" and "the wedge" attempting to shoot one another while maneuvering in the gravity well of a star. The ships fire missiles that are unaffected by gravity (due to a lack of processing time). Each ship has a limited number of missiles and a limited supply of fuel. Each player controls one of the ships, and must attempt to simultaneously shoot at the other ship and avoid colliding with the star. The hyperspace feature can be used as a last-ditch means to evade enemy missiles, but the reentry from hyperspace would occur at a random location and there is an increasing probability of the ship exploding with each use.
Player controls include clockwise and counterclockwise rotation, thrust, fire, and hyperspace. Initially these were controlled using the front-panel test switches, with four switches for each player, but these proved to wear out very quickly under normal gameplay, and the location of the switches left one player off to one side of the CRT display and visually disadvantaged as a result. Most sites used custom control boxes wired into the same switches, although joysticks and other inputs were also used.
Several optional features were controlled by sense switches on the console:
- no star (and thus no gravity)
- enable angular momentum
- disable background starfield
- the "Winds of Space"- a warping factor on trajectories that require the pilot to make careful adjustments every time they move.
Subsequent developments and variants
The first operational version of the game, finished by February 1962, contained a randomly generated background starfield. However, the inaccuracy and lack of realism annoyed Samson, so he wrote a program based on real star charts that scrolled slowly: at any one time, 45% of the night sky was visible, every star down to the fifth magnitude. The program was called "Expensive Planetarium" (referring to the price of the PDP-1 computer), and was quickly incorporated into the main code. The star gravity well and the hyperspace feature also had yet to appear in that first playable version; they were written by Edwards and Russell, respectively, to add elements of strategy to what initially was a shooter game of pure reflexes. With these additions, Spacewar was essentially complete by late April 1962.
The game spread rapidly to other research centers, where other programmers began coding their own variants, including features such as cloaking devices, space mines, and even a first-person perspective version, played with two screens, that simulated each pilot's view out of the cockpit.
Spacewar was a fairly good overall diagnostic of the PDP-1 computer and Type 30 Precision CRT Display, so DEC apparently used it for factory testing and shipped PDP-1 computers to customers with the Spacewar program already loaded into the core memory; this enabled field testing as when the PDP was fully set up, the field representative could simultaneously relax and do a final test of the PDP.
Ports to other systems
Spacewar was extremely popular in the 1960s, and was widely ported to other systems. As it required a graphical display, most of the early ports were to other DEC platforms like the PDP-10 or PDP-11, or various CDC machines.
Early microcomputer systems also supported Spacewar. The Cromemco Dazzler had a version, as did the ECD Micromind. The Micromind did not have a high-resolution bitmap display, due to the high cost of memory at the time. This version rendered ships in portions of the computer's flexible character generator, which was dynamically generated to support rendering ships at different angles.
Spacewar was ported in the 1970s to a new computer, the HP9825 desktop calculator, using a pen-based plotter as the display. Ported by a mathematician working in the (then) 544 ARTW/Trajectory Division, it was a natural project for the engineers working on ballistic missile codes.
As of May 2006[update], there is only one working PDP-1 known to be in existence, at the Computer History Museum in Mountain View, California. The computer and display were completely restored after two years of work, and Spacewar is operational. On May 15, 2006, the museum presented The Mouse That Roared: A PDP-1 Celebration Event. The PDP-1 was demonstrated running Spacewar as well as other programs, and members of the public were able to play the game using makeshift controllers.
A version of Spacewar was developed by Valve and put on Steam to show the capabilities of the Steamworks API. The program is named SteamworksExample.exe, and can be downloaded by going to the url steam://install/480.
Games inspired by Spacewar
Over the years, many computer games have been inspired by Spacewar; some are known by the same name. Some are straightforward clones, but most have introduced additional variations to the game play, such as:
- various rates of acceleration
- various levels of gravity (even negative)
- missiles affected by gravity
- fuel (energy) regeneration over time
Arcade versions of Spacewar were released as the Galaxy Game (1971), Computer Space by Nutting Associates (1971), and Space Wars by Cinematronics (1977), the last being the most commercially successful.
The first networked version of this genre was Orbitwar (1974) by Silas Warner on the PLATO network. It included all the features of the original Spacewar with the addition of a Big Board where PLATO users would await challenges from each other to play.
Home versions have appeared for most computer and console systems, with some becoming quite elaborate, such as the Star Control series, introducing a wide variety of gameplay frameworks around the basic one-on-one combat system at its core. Senko no Ronde can be described as a modern interpretation of Spacewar, with a design heavily inspired by versus fighters such as Street Fighter II. The Escape Velocity series also owes its 2D inertial combat and navigation to Spacewar.
Non-space themed variants with similar play (i.e. two players control a vehicle using similar controls – i.e. rotate left / rotate right / move forward / fire – and try to score by hitting their opponent with a missile) include Tank by Kee Games and Combat by Atari.
Atari, Inc. made Space War, an Atari 2600 port of the original with additional options. Atari Corporation had an Atari Jaguar game called Spacewar 2000 in development as a 3D update to the original, but was cancelled when Atari abandoned Jaguar support.
Earlier computer and video games
The first graphical computer game is believed to have been OXO (a Tic-tac-toe game), developed by A.S. Douglas in 1952. William Higinbotham built Tennis for Two in 1958 using discrete analog hardware rather than a program for a digital computer.
- Markoff, John (June 3, 2006). "Alan Kotok, 64, a Pioneer In Computer Video Games". The New York Times Company Staff. Retrieved February 5, 2009.
- The Computer Museum Report Volume 8, Spring 1984, archived by bitsavers.org
- "The origin of Spacewar", Creative Computing magazine, August 1981, J. M. Graetz, archived by wheels.org, retrieved 2010-3-17
- Brand, Stewart (December 7, 1972). "Spacewar: Fantastic Life and Symbolic Death Among the Computer Bums". Rolling Stone (Straight Arrow Publishers, Inc.) (123): 50–58.
- "Players Guide To Electronic Science Fiction Games". Electronic Games 1 (2): 34–45 . March 1982. Retrieved February 1, 2012.
- "Initial response from JSL – design notes I", ECD Micromind Project, July 11, 2006
- "The Mouse That Roared: A PDP-1 Celebration Event". Retrieved August 1, 2008.
- Cox, Charles and Klucher, Michael (May 2007). "Unleash Your Imagination With XNA Game Studio Express". MSDN Magazine (Microsoft Corporation). Retrieved October 4, 2007.
- Markoff, John (December 16, 1990). "Digital Fetes the 'Germ' That Began a Revolution". The New York Times. Retrieved February 5, 2009.
- Ritchie, Dennis M. "Space Travel: Exploring the solar system and the PDP-7". Retrieved March 11, 2007.
- Spacewar page at the Computer History Museum
- Spacewar (video game) at the Open Directory Project
- 1up.com's article naming Spacewar the most important video game ever made
- "Spacewar", a 1972 Rolling Stone article by Stewart Brand
- A 1972 Saga Magazine article about Spacewar
- Computer and Video Game History describes Spacewar and earlier video games such as A.S. Douglas' Tic-Tac-Toe and William Higinbotham's Tennis for Two
- Gamasutra's Spacewar: The Best Waste of Time in the History of the Universe by Bill Loguidice and Matt Barton