A bubble-arena twin-stick shooter: pop hostiles, collect their energy and evolve your craft along eight upgrade paths, with evolutions, mutations, fusions and eight chassis. Plays with mouse and keyboard or touch.
- Enemies: swarmers, shooters, splitters, dashers, bruisers, puffers, lancers, wardens, lobbers, tetherers, menders and hoarders. Elites roll affixes (Shielded, Volatile, Swift, Splitting, Regenerating, Orbiting Shards), shown as coloured pips.
- Bosses: a mini-boss on the third wave of each sector (Brood Mother, Twin Lancers, Bruiser King) and a guardian every fifth wave, rotating Guardian, Hydra, Lighthouse and Maelstrom, each with phases at 66% and 33%.
- Builds: level-ups offer three quick-pick cards without pausing (or the full tree, in the pause menu); every node shows its before → after stats. Owning both halves of a pair unlocks a fusion evolution in the mutation offer (8 in all); a point rerolls an offer.
- Ascension: at 12 points in a path, your evolution can ascend once more (16 ascensions). Every evolution reshapes the hull, and evolving or ascending gets its own moment.
- Modes and progress: a Daily Run seeded from the UTC date (same run for everyone, local best kept), a choice of three sector modifiers at the start of each sector, and chassis that unlock as you reach goals (or all at once with the sandbox toggle).
- Overdrive: pops charge a meter; when full, Q (or the OD button) fires an ability from your dominant path: Barrage, Bulwark, Time Slow, Nova Cascade, Thunderclap, Frost Nova, Airstrike or Vacuum.
- Waves: formations (stream, pincer, encircle), a build-up / steady / mini-boss / peak / guardian curve in each sector, and gentle adaptive pacing. Enemies lead their shots as waves climb, swarmers surround, only a few telegraphed attacks wind up at once, and elites sidestep shots.
- Difficulty: Chill, Standard, Veteran, or Custom (seven sliders: XP gain, enemy HP, damage taken, enemy speed, time between spawns, wave size, boss HP). The score multiplier follows from those values (Chill ×0.6, Veteran ×1.5), so easier settings never score more. Bests are kept per difficulty; daily runs are always Standard.
- Local co-op: 2-4 players on one screen (CO-OP on the start screen, or C). Join with keyboard + mouse (WASD, mouse, Space dash, Q overdrive, 1-3 picks), a second keyboard layout (arrows, numpad aims and fires, Right Ctrl dash, Numpad Enter overdrive, Numpad / * − picks) or gamepads (sticks, RB dash, Y overdrive, D-pad picks, Start pause). Shared XP with personal upgrades, per-player cards and upgrade trays that never pause the fight, downed bubbles a teammate revives, a camera that zooms to keep everyone in view. Touch is for solo play.
- Online co-op: up to 4 players on their own devices, peer to peer (WebRTC, no game server). The host's page runs the game; others join with a copy/paste code, a join link or a QR code, and send an answer code back. Clients see the host's difficulty; party scaling follows who is in play. Late joiners arrive at the next wave break; a dropped player has 30 s to reconnect. Needs a connection and the same game version on both sides; some strict networks can't connect directly.
- Settings: one screen (start menu, pause menu, or O) with tabs for gameplay, controls, audio, feedback, display and progress; saved in the browser, with per-section and full reset.
- Feel: squash and wobble on impacts, trauma-based screen shake with a directional kick (FULL / LOW / OFF; reduced motion starts on LOW), damage-direction arcs, off-screen attack warnings, stereo-panned sound with combo pitch and a low-integrity heartbeat, vibration on Android, and a fullscreen + landscape option.
Play: open index.html in a browser. It is one self-contained file (no external scripts or styles), so it
works straight from disk or from any static host such as GitHub Pages. Served over http(s) it is also an
installable app that plays offline (web app manifest + service worker; the files sit beside index.html).
The game is written as ES modules in src/ and bundled into that single file.
npm install # once: installs esbuild
npm run build # src/ -> dist/index.html and index.html
npm test # unit checks, stat parity, headless 20-wave smoke test
node test/smoke.mjs --diff veteran --seed-base 5000 # smoke on another difficulty and seeds
npm run check # also fails if the committed HTML is out of date
Edit src/, never index.html or dist/index.html (they are generated). Commit the rebuilt HTML with the
source change.
src/
main.js browser entry: wiring and the fixed-timestep loop
core/ math, seeded RNG, event bus, pools, spatial grid, input/view state, storage, settings schema
data/ stats, upgrade paths, mutations, chassis, difficulty presets, constants (declarative)
sim/ the simulation; runs in Node with no DOM
enemies/ one file per enemy archetype (stats, AI, drawing, telegraph, on-death)
effects/ build behaviour, registered on hooks (onTick, onFire, onHit, onKill, onHurt, onDash, ...)
players.js the players in a run (G.players, 1-4), shared team XP, downed / revive, co-op scaling
render/ canvas drawing (background cache, world layers, player, overlay, interpolation)
fx/ event-bus listeners: Web Audio synth and feedback (particles, hit-stop, shake, vibration)
ui/ DOM HUD, menus, input wiring, local and online co-op screens, player cards, styles, HTML template
net/ online co-op: codec, transports (WebRTC, loopback for tests), host, client, session
meta/ daily-run seeding and chassis-unlock rules (pure)
assets/ PWA icons; sw.js is the service-worker template
test/ units, settings, difficulty, stats parity against the original recalc(), content / systems / stretch
scenarios, co-op simulation, local co-op input / zoom / leash, online co-op over a loopback, smoke test
build.mjs esbuild bundle + inline into the HTML template; writes manifest, versioned sw.js and icons
- An enemy: add
src/sim/enemies/<name>.jscallingdefineEnemy({...})(seeregistry.jsfor the fields), then import it insrc/sim/game.js. Give itunlock: { wave, w }to join the spawn pool. - An upgrade node or mutation: add it to
src/data/paths.jsormutations.jswith statmods(add,flat,more,mul,div,set; seesrc/data/stats.js). If it needs behaviour, not just numbers, add an effect withdefineEffect({ id, when: s => ..., onKill(p, e) {...} })insrc/sim/effects/. Every hook gets the owning player first (seesrc/sim/hooks.js): usep, neverG.player, and pass it on (playerHit(..., p),heal(v, p),owner: p.ion shots and hazards) so co-op credits the right player. - A fusion: add it to
src/data/fusions.jswith itsneedsandmods; behaviour goes insrc/sim/effects/fusions.js. It joins mutation offers once its prerequisites are owned. - A boss: define it with
boss: true(andguardian: truefor a sector boss) and atitle; it joins the shared boss bar. Add it toSECTOR_BOSSESorMINI_BOSSESinsrc/sim/waves.js. - Feedback for an event: subscribe in
src/fx/juice.js(or audio) withon('enemyKilled', ...).
The simulation draws all its randomness from the seeded RNG in src/core/rng.js; cosmetic randomness
(particles, sounds) uses crand/Math.random, so a run is reproducible from its seed.