Eject cartridge
05 DOM SHOOTERv0.7.2 / MIT

Null InvadersDelete the invasion.

Fly an interceptor through a real webpage. Turn letters into binary, break the button factories, and clear the aliens they release.

Play uses the selected build. Notes below describe the current release.

Created by · coded.design

DOM SHOOTERDOM / ACTIVE SURFACE
THE PAGE ISTHE PLAYFIELD.
Four waves. One page. Increasing firepower.ARCADE SIGNALS / DOM TERRAIN
22.9 kBgzip · complete game + engine
4weapon tiers
48alien cap
80bullet cap
MEET THE CHARACTERS

Know who’s on the page.

  • Pilot

    Interceptor

    Steer with the mouse or arrow keys. Hold Fire or Space. Shooting page text leaves real binary behind; weapon upgrades unlock at 8, 24 and 50 XP.

  • Pursuer

    Drone

    The slowest alien shape. Spawns from live button gates and chases your ship with a sideways sway. One hit early; two from wave 3.

  • Fast pursuer

    Crab

    Uses the same pursuit rules as the drone, with a higher movement speed. Contact costs a shield. Destroy its gate to stop that spawn source.

  • Fastest pursuer

    Squid

    The fastest of the three alien shapes. Health rises with the wave, just like the other aliens; keep moving while firing.

THE LOOP
  1. 01Shoot letters
  2. 02Earn combat XP
  3. 03Upgrade the ship
  4. 04Destroy factories

Know your controls.

  • Mouse/WASD/↑←↓→fly and aim
  • Click/Spacefire
  • PpauseGnext factoryEscRecall
  • Scoreboardsoundpause / resumeminimizeRecall

Sound starts after your first input. Minimize keeps the game running; Recall restores the page.

Every heading is cover. Every button is a factory.

Bullets travel through viewport space and collide with cached text geometry. A hit writes a literal 0 or 1 into the existing DOM Text node. That letter can be consumed once, and inherits its real page font and color. Button health drains through a liquid fill. A destroyed factory stops spawning for the rest of that wave.

Get stronger during the fight.

Pulse starts with one shot. Twin unlocks at 8 XP, Trident at 24, and four-shot Overdrive at 50. Letters give 1 XP, aliens 4, factory hits 2, and a destroyed factory another 8. Fire cadence accelerates from 160 ms to 95 ms. Weapon pods appear on the interceptor as it upgrades.

NERD NOTES · GITHUBHow Null Invaders works under the hoodEngineering notes, budgets and source in the README

Null Invaders on your site.

Shared TypeScript runtime

null-invaders.jsJS / ESM
import { createNullInvaders } from "@coded-design/null-invaders";

const game = createNullInvaders({
  root: "main",
  textSelector: "h1, h2, p",
  targetSelector: "[data-factory]",
  targetEffects: "liquid",
});
game.start();
// Later: game.destroy();
Choose your elements. Start playing.