DOWNLOAD
NO RELEASE YET
The first builds are on their way. Until then,
build it yourself: with a C compiler and
make, it takes about a minute.
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
-
MOTHERSHIPAlways drops a power-up
- 50-300
-
DARTZigzag bolts
- 30
-
CRABFast plasma
- 20
-
BRUTEHeavy plasma
- 10
-
HIVE QUEEN10 a hit, 1000 × bosses beaten
- 1000+
-
RAPID FIREFire much faster, for 8 seconds
-
SPREAD SHOTThree shots at once, for 8 seconds
-
SHIELDBlocks one hit, for up to 15 seconds
-
EXTRA SHIP500 points if you already have six
- 1UP
-
EVERY 5000Another ship, and 100 × wave for each clear
- 1UP
SEE IT MOVE
THE HIVE QUEEN
Every fifth wave. She gets angrier as she weakens.
WAVE 3
The fortress formation, with a hard core.
MENUS
MAIN MENU
Over a game that plays itself.
HOW TO PLAY
Controls, enemies and power-ups on one page.
NEW HIGH SCORE
Three letters, typed or picked with up and down.
GAME OVER
Score, wave reached, hits out of shots and time.
HIGH SCORES
The top ten, saved between runs.
YOUR STATS
Totals over every game, a page over from the scores.
SETTINGS
Difficulty, volume, march beat, shake, scanlines and keys.
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
-
OR
- Move (the left stick works too)
-
J
OR
- Fire; hold to keep firing (X and the right trigger too)
-
OR
- Pause; the game also pauses when its window loses focus
- F11ALT+ENTER
- Toggle fullscreen
-
- 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.
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.