CNA Samples

Spacewar

Ported from Microsoft's XNA Spacewar Starter Kit.

Source for this sample on GitHub ↗

The Spacewar title screen with a rocket, sun and Retro and Evolved choices. Play ▸

Opens in a new tab. Click the canvas first so it receives keyboard input and starts audio.

About this sample

Spacewar is a two-player starship battle around a dangerous sun. Choose the line-drawn Retro mode or the Evolved mode with textured 3D ships and effects. Destroy the other ship, avoid the sun's gravity, and spend points on weapons between rounds.

The browser build uses the original compiled XNA content and XACT sound banks. Its settings, including controls, are loaded from the original XML document.

Controls

ActionPlayer 1Player 2
Choose Retro / Evolved / InfoG / V / FEnd / Home / Page Up
Rotate and thrustA/D and W/SArrow keys
Fire / hyperspaceV / GHome / End
Start / return to titleLeft CtrlRight Ctrl
Pause / backLeft ShiftRight Shift