This game is a simple Asteroids clone primarily intended to demonstrate the capabilities and flexibility of w64devkit. It has real-time graphics (OpenGL), sound (DirectSound), and gamepad support (XInput). Anyone running Windows is about a minute away from building this program from source, without the need to install tools. It's easy for anyone to modify and adapt, or to serve as a starting point for their own projects.
Other than the operating system and trivially-obtained compiler toolchain, there are no build dependencies. There are also no run-time dependencies, so distribution of the game .exe is trivial.
For an introduction and overview of the game's source code, see Nolan Prescott's excellent guide.
Download a w64devkit release, unzip anywhere, double-click the
unzipped activate.bat
to bring up a console window, navigate to this
source directory (cd
), and run make
. This compiles a ready-to-play
47kB asteroids.exe
.
Lives are unlimited but every death halves your score. Each time the asteroids are cleared the game slightly increases in difficulty.
Keyboard: Arrows keys for turning and thrust. Spacebar to shoot.
Gamepad: X or Y for thrust, and A or B to shoot. Shoulder buttons, D-pad, or left thumbstick to turn.
While the game depends explicitly on Windows, it runs comfortably on other x86 systems via Wine. To build using a cross-compiler:
make CROSS=x86_64-w64-mingw32-
Then run with Wine:
wine64 ./asteroids.exe