Inspiration

In 2003 a console webcam game had whole families flailing at their TVs, swatting enemies with bare hands. The hardware died and the genre died with it. We wanted it back with no console, no install and no special camera: just a browser tab and a webcam. And on Halloween, the enemies had to be ghosts.

What it does

Exorcise is a full-body webcam arcade game. Stand back, raise your hands, and swat the ghosts, bats and skulls that fly in from every side.

  • 6 stages with scripted waves (fly-bys, arcs, drop-ins, swarms), a candy storm bonus round, a 3-phase boss in stage 5, and the Midnight Finale against the Hollow King
  • Ghosts, bats, twin wisps, mirror ghosts with shields, blink ghosts, and cursed skulls you must not touch
  • Fair danger: a red warning ring appears at least 1 second before anything can cost a heart
  • Combo tiers (x2/x3/x4), hit-stop, knock-back in your swipe direction, and PERFECT! call-outs
  • 2-player split screen on one webcam: each player owns a half, with their own enemies, score, lives and boss
  • An Exorcist Card at the end: a spooky photo card with your best moment, stats and rank, one per player in 2P
  • A local top-10 high-score table, with your name entered by waving
  • A hands-free demo mode that plays a full run, so anyone can see the game without a webcam
  • Original procedural music and sound effects that layer up with your combo, plus title and boss themes
  • Hands-only menus: buttons sit at raised-hand height with a hold-to-confirm ring, so swaying your body never presses anything
  • Onboarding with a silhouette framing guide, plus recovery when the camera is denied or lost

Privacy by design: no ML and no server. Motion is detected with frame differencing, and your video never leaves your device. Nothing is uploaded.

How we built it

TypeScript + Vite + Canvas 2D + Web Audio, deployed on GitHub Pages. All of it was built spec-first with Kiro CLI:

  • Specs: 28 specs in .kiro/specs/, each with requirements, design and tasks, and one commit per task
  • Steering docs that hold the game's rules, style and privacy promises
  • Agent hooks: run tests on save, check spec-vs-code drift when tasks.md changes, and keep the README test count in sync
  • Property-based tests (fast-check): 182 properties, such as lives never going negative, the enemy cap never being exceeded, mirror parity, no cross-hits in 2P, and frame-rate independence
  • A custom MCP server (motion-harness) that drives the game headlessly with a synthetic webcam and returns hit metrics
  • A custom agent (balancer) with a restricted toolset that runs the harness and proposes data-only tuning changes
  • A Kiro power that packages the harness workflow with its own skills
  • Real playtests: every webcam playtest video went back into Kiro as a new spec, with fixes and tests

Challenges we ran into

  • Frame-rate dependence: enemies ran twice as fast on 120 Hz screens until movement moved to per-second units scaled to screen height
  • Motion UI ergonomics: our first menus put buttons at hip height, where body sway triggered them. An audit moved every button to shoulder-to-overhead height with a dwell ring
  • Browser audio unlock: a wave isn't a user gesture, so we added a clear "click to enable sound" hint
  • Fair 2P: making it impossible for one player's motion to hit the other's enemies
  • Fair danger: real playtests showed hits that felt cheap, like a ghost arriving in an empty corner or a skull hiding inside a bat swarm. We added warning rings, side-entry skulls, a 1-second grace period and a clear lane for every skull

Accomplishments that we're proud of

  • Property-based tests caught a real bug that unit tests missed: two spawn timers firing on the same tick could push enemies past the cap. Four more bugs found in review (frame-diff wrap-around at the edges, scoring after game over, frame-dependent effects, lost spawn-timer overshoot) were each locked down with a regression property
  • The test suite grew from 133 to 1,904 tests, all passing
  • A complete game loop from onboarding to the Hollow King and the victory screen, with all original code, art and audio, and zero network calls

What we learned

Spec-first beats vibe coding for game feel: writing requirements like "the lunger can only be hit during its wind-up" made fairness testable. Property tests and a headless motion harness let us tune a webcam game without standing in front of a camera for every change, and feeding real playtest videos back into specs closed the gap between "the tests pass" and "it feels fair".

What's next for Exorcise

Daily challenges, online leaderboards that keep the no-video-upload promise, more bosses, and accessibility modes for seated play.

Built With

Share this project:

Updates

Submission history