/spacewar-js

JavaScript implementation of the DOS game SpaceWar

Primary LanguageJavaScriptMIT LicenseMIT

spacewar-js

Spacewar! was one of the earliest video games ever made. Although it was originally implemented on the PDP-1, many of us grew up playing a more recent implementation in DOS. This repo is a hobby code project to make a similar game using the JavaScript framework matter-js.

It is currently a two-player game. I'm not sure how I'd implemented an AI yet.

You can play it at http://artpoon.github.io/spacewar-js

Controls

Action Ship 1 Ship 2
Rotate counter-clockwise a k
Rotate clockwise d ;
Thrust s l
Phasers q i
Photon torpedos e p
Divert energy from shields z ,
Increase energy to shields c /
Hyperspace pending pending
Engage cloak pending pending