VOID INVADERS

Hold the line. Save the last bunkers.

DOWNLOAD GET THE SOURCE BUILD IT HOW TO PLAY

Windows, macOS and Linux · all downloads

WINDOWS · MACOS · LINUX · C11 · RAYLIB 5.5 · MIT LICENSE

The built-in autopilot playing the first wave: the ship weaves under the marching formation, shooting aliens and dodging their shots behind the bunkers.

DOWNLOAD

YOUR SYSTEM

WINDOWS

64-bit · .zip

DOWNLOAD
YOUR SYSTEM

MACOS

Apple Silicon · .tar.gz

DOWNLOAD
YOUR SYSTEM

LINUX

64-bit · .tar.gz

DOWNLOAD

LATEST RELEASE Unpack it and run spaceinvaders (spaceinvaders.exe on Windows); nothing to install. The builds aren't code-signed, so Windows SmartScreen and macOS Gatekeeper warn the first time, or build it yourself.

WHAT'S INSIDE

A FORMATION THAT MARCHES

It speeds up as it thins out, drops a row at every edge, and wins the moment it lands.

THREE KINDS OF ALIEN

Darts fire zigzag bolts, crabs fast plasma, brutes heavy shots that bite deep into the bunkers.

THE HIVE QUEEN

A boss every fifth wave, weaving faster and firing harder as she takes damage.

THE MOTHERSHIP

Drifts over now and then for 50 to 300 points, and always drops a power-up.

BUNKERS THAT ERODE

Chipped pixel by pixel by your shots, theirs, and the aliens marching through them.

FOUR FORMATIONS

Block, chevron, fortress and checker, each wave starting lower and firing faster than the last.

HALL OF FAME

A top-ten table with arcade-style initials, and lasting stats over every game you play: best wave, kills, accuracy and time.

THREE DIFFICULTIES

Easy gives you four ships and a gentler hive, hard just two and a faster, angrier one. Scores are tagged with theirs.

ONE FILE TO RUN

Plain C11 and raylib. All the art and sound are built into the program, and the march beat is synthesized.

SCORE TABLE

MOTHERSHIP
Always drops a power-up
50-300
DART
Zigzag bolts
30
CRAB
Fast plasma
20
BRUTE
Heavy plasma
10
HIVE QUEEN
10 a hit, 1000 × bosses beaten
1000+
RAPID FIRE
Fire much faster, for 8 seconds
SPREAD SHOT
Three shots at once, for 8 seconds
SHIELD
Blocks one hit, for up to 15 seconds
EXTRA SHIP
500 points if you already have six
1UP
EVERY 5000
Another ship, and 100 × wave for each clear
1UP

SEE IT MOVE

The Hive Queen boss on wave 5 weaving across the screen and firing fans of shots while the shielded ship returns fire.

THE HIVE QUEEN

Every fifth wave. She gets angrier as she weakens.

Wave 3, the fortress formation, with a thinned-out alien grid above eroded bunkers.

WAVE 3

The fortress formation, with a hard core.

MENUS

BUILD & PLAY

You need a C11 compiler, GNU Make, curl and tar. If raylib 5.5 isn't installed, make downloads and builds it for you.

On Debian or Ubuntu, install the X11 and OpenGL headers first:

sudo apt install libx11-dev libxrandr-dev \
  libxinerama-dev libxcursor-dev libxi-dev \
  libgl1-mesa-dev

On Windows, build from an MSYS2 MINGW64 shell with make and mingw-w64-x86_64-gcc installed.

# get the code
git clone https://github.com/HilthonTT/spaceinvaders.c
cd spaceinvaders.c

# build and run
make run

# optimized build
make BUILD=release

# jump straight to the first boss
./build/release/spaceinvaders --wave 5

CONTROLS

Left and right arrows A D OR D-pad left and right
Move (the left stick works too)
Space Z J Up arrow OR Gamepad A
Fire; hold to keep firing (X and the right trigger too)
Escape P OR Gamepad Start
Pause; the game also pauses when its window loses focus
F11ALT+ENTER
Toggle fullscreen
Up arrow Down arrow Enter
Menus, which work with the mouse and a gamepad too

MAKE THEM YOURS

Those are the defaults. Settings › Controls gives moving left, moving right, firing and pausing up to four keys each: pick a slot and press a key. Delete clears one, and a key another action uses moves over.

Esc always pauses, and Enter, F11, Backspace and Delete stay with the menus. The on-screen prompts show the keys you picked, and they're saved with your settings.

The controls screen: move left, move right, fire and pause, each with four key slots.

Clear every alien to finish a wave. You start with three ships and the game ends with your last one, or at once if the formation lands.