A cinematic arcade shooter for the browser. Fly anywhere in the lower half of the screen, shoot down alien formations and beat a boss at the end of every world: 18 worlds and 90 levels, each world with its own look, music and twist. Spread shot, laser, rapid fire, shield, homing shots, slow time, smart bombs and extra lives along the way (a second power-up waits in reserve while the first runs), and combos for the score. Sunset Armada, the thirteenth world, brings its own: wingmen, two escort fighters that fire with you, and a broadside twist that opens the ship's side guns. Ember Carnival, the fourteenth, has a fireworks twist: some invaders are shells, and a shell you shoot down bursts and sets off the ones around it. Lantern Deep, the fifteenth, drops two powers found nowhere else: pearls, three that circle the ship and wipe out the bullets they touch, and a trident whose shot runs through every invader in its path. Glass Cathedral, the sixteenth, drops a mirror found nowhere else: a glass twin of your ship that flies opposite it and fires when you fire. Its gargoyles shatter when shot down, and the shards mend themselves unless you shoot them too. Ash to Air, the seventeenth, is the hardest world: the enemy is the habit itself, cigarettes, cigars and pipes led by the Craving, in a city choked with smog that heals as you win, from brown haze to clear sky. Every so often a breath of fresh air comes to help and sweeps the enemy bullets away. Anvil Sky, the eighteenth, is a dogfight inside a thunderstorm and the first world where the ship flies anywhere under the score panels, straight at the invaders; every world after it flies free too. The enemy's homing bullets turn to follow you: lead one far enough round and it turns on the first invader or boss part it crosses, so they die to their own fire. Touch an invader, or the boss, the Squall Ray, a manta of thundercloud, and you lose a life. The ship's side guns come as a power-up there.
Clear a level and the game cuts a movie trailer from your own run, title cards and all. The Cinema on the title screen keeps your best run of every level. Lose one and you get the blooper instead.
Play
invaders.cocode.dk: free, nothing to install. Keyboard or mouse.
Controls
| Action | Keyboard | Mouse |
|---|---|---|
| Move | Arrows or WASD | the ship follows the pointer |
| Fire (hold for auto-fire) | Space | left button |
| Smart bomb | B or Shift | right button |
| Pause | P or Esc | |
| Mute | M | |
| Confirm in menus | Enter | click |
Any key skips a trailer. "Watch, then try" on the title screen shows each move before you play.
Run locally
Plain HTML, CSS and JavaScript modules: no dependencies, no build step, no network requests at runtime. Every URL is relative, so the folder also works under a sub-path.
git clone https://github.com/cocodedk/invaders.git
cd invaders
python3 -m http.server 8000 # then open http://localhost:8000/
Any static file server works. Opening index.html straight from disk does not, because browsers
block ES modules on file://.
Tests
npm test
Node 22 or newer, nothing to install. The suites cover the simulation (formations, bosses, bullet
patterns, replays that re-simulate a run exactly) and the effects state; a repo test keeps every
code file under 200 lines and the game free of external URLs. The design spec and build plan are in
docs/superpowers/.
Contributing
See CONTRIBUTING.md. Security reports go through SECURITY.md.
Author
Babak Bandpey — https://cocode.dk | LinkedIn | GitHub
License
Apache-2.0 | © 2026 Cocode | Created by Babak Bandpey

