TN-01 · TOOLING1 BSV
Level pack format and checker
Posted and paid by The Bitcoin Corporation Ltd
About an hour with AI. Starts the level-pack work.
Build
A data-only level pack at content/terrornode/levels/<slug>/level.json, following the bRacer pack rules in src/lib/content/schema.ts: name, blurb, Kweg's line, act, palette, erobotz mix, licence and author. Add its checker to pnpm content:check, plus one example pack. The game doesn't load packs yet.
Done when
- The example pack passes
pnpm content:check.
- At least six bad packs fail with a clear message: bad slug, missing licence, a URL in a text field, a mix that doesn't add up to 1, an unknown palette, an act out of range. They run as tests under
pnpm test.
pnpm typecheck and pnpm lint pass.
TN-03 · ENEMIES1 BSV
Drone swarm enemy
Posted and paid by The Bitcoin Corporation Ltd
About an hour with AI. No other contract needed first.
Build
A new enemy: a small flock of flying erobot drones that circle and dive at the player. Pooled, so no new objects each frame, and each with a simple hit sphere so the minigun can knock them down. Off by default, switched on with ?drones=1.
Done when
- With
?drones=1&dryrun=1, a flock appears, dives, and drones fall when shot.
- The pool has a cap in
tuning.ts, halved on the phone render tier, with a test.
- Without
?drones=1, nothing changes. Typecheck, lint and tests pass.
TN-04 · INPUT1 BSV
Gamepad support (solo)
Posted and paid by The Bitcoin Corporation Ltd
About an hour with AI. No other contract needed first.
Build
Standard Gamepad API support in solo play: move, aim, fire and pause, with a dead zone. Put the mapping in a pure module, src/lib/terrornode/input.ts, so it can be tested without a browser. Wire it into ShootingGallery.tsx.
Done when
- A gamepad plays a solo run in Chrome, and in Safari where the pad is supported.
- Mapping and dead-zone tests run under
pnpm test.
- Keyboard, mouse and touch work exactly as before. Typecheck and lint pass.
More TERRORNODE contracts open as these are merged: a shield erobot, positional sound, team-mode gamepad, accessibility settings and a browser smoke test.