Inspiration

  • Victorian "safety coffins". In the 1800s people were so afraid of being buried alive that coffins came with a bell on the grave and a cord to the hand inside. I wondered: what if one of those cords had been cut on purpose?
  • A mystery you play, not a cutscene you watch. I wanted the player to be the detective: read the stones, cross-check the ledger, compare handwriting, and name the guilty party themselves.
  • Horror that fits the interface. For the Costume Contest, I wanted the spooky UI to be the game itself. The lantern flame is your oil gauge, the map is a pencil sketch, the journal is ink on parchment.
  • Horror for everyone. Jump scares put a lot of people off, so I wanted every scare warned of first, and able to be turned down or off.

What it does

  • You are the new gravekeeper of Hollowmere Cemetery, October 1891. The last keeper, Elias Thorne, vanished, and the dead won't stay buried.
  • Three stages, three cases, all one family's story:
    • Stage I, Saved by the Bell: a woman buried alive, and a bell cord someone cut.
    • Stage II, The Resurrection Men: body snatchers, a torn watch log and boot prints.
    • Stage III, the Crane crypt: a hymn-board code, the catacombs, and Elias himself.
  • By day you search for clues and solve small puzzles. By night the curse holds back the sun and the dead come in waves.
  • Name the truth at the altar. The right name lifts that stage's curse and opens the next. A wrong one: "A sour note, and the dead take it personally."
  • The final rite: lay five relics in the order the priest confessed, while the dead surge into the chapel.
  • First-person survival:
    • A lantern that burns oil.
    • Melee weapons and black-powder guns, blocking, dodging and kicking.
    • Crafting at the workbench.
    • Boarding up the chapel doors.
  • The interface is the world:
    • The lantern flame shows your oil.
    • The map inks itself in as you explore.
    • The objective is a pillar of lantern light with one line on why it matters.
    • After two quiet minutes, your flame leans toward the clue you missed.
  • Comfort settings:
    • Scare intensity Full / Reduced / Off.
    • No-flash mode.
    • Subtitles for every important sound.
    • FOV and head bob.
    • A plain journal font.
    • Rebindable keys.
  • Developer mode for judges short on time: the same game, with a skip key and a stage-jump panel.
  • Free in the browser on PC and laptop, at last-rites.vercel.app.

How we built it

  • Spec-first in Kiro. One design bible became 11 specs: about 1,150 EARS requirements and 481 tasks. Each spec goes requirements → design → task list, and Kiro wrote most of the code from those tasks, one small, tested piece at a time.
  • 8 steering files kept Kiro on course: product, tech, structure, horror design, visual style, accessibility, MCP usage, and the log rule. horror-design.md is why every scare Kiro wrote comes with a warning first and respects Reduced and Off.
  • 6 hooks watch the project:
    • Run the game-logic tests on every save.
    • Check data against the design bible.
    • Audit scares for accessibility.
    • Check asset licences.
    • Review performance.
    • Update the Kiro log.
  • Property-based tests with fast-check, in half of the 362 unit test files (about 2,900 tests), plus Playwright browser tests that play the whole game from New Game to the ending card.
  • MCP (context7) to get current library APIs right (Rapier, React Three Fiber, drei).
  • Tech stack:
    • React Three Fiber and three.js for 3D.
    • Rapier for physics.
    • zustand for state, Howler.js for sound.
    • Vite and TypeScript.
  • Assets:
    • Props modelled in Blender from Python scripts.
    • Sound effects and narration made with ElevenLabs.
  • An honest log. Every change is in docs/kiro-log.md. A few late fixes were made outside Kiro, against the same specs and task lists, and each is marked Outside Kiro. Playable devices: PC or laptop only. It does not work on phones or tablets.

Challenges we ran into (and how we solved them)

  1. Scare zones that never fired. By default, Rapier's fixed sensors never detect a kinematic player, so no scare would ever trigger. A headless physics check found it. The sensors now set ActiveCollisionTypes.ALL, with a test to guard it.
  2. A random number that wasn't a number. fast-check's fc.float can produce NaN even with bounds, which would have broken the fixed timestep. The generators switched to whole milliseconds.
  3. Float rounding at the edges. A property test showed lerp at k = 1 didn't land exactly on its target. It now uses a*(1-k) + b*k, which does.
  4. Players got lost. Playtests showed people wandering with no idea where to go. Every day step now has a marker, a "why" line under the objective, and a lantern flame that leans toward a missed clue. A property test checks that no step of any stage leaves the player without a marker.
  5. A puzzle board nobody understood. The red-string case board confused players, so it was replaced with case write-ups in the journal, in the keeper's handwriting.
  6. A boss with no body. The final boss, Father Crane, never got a finished model. Rather than ship a recoloured zombie, I took him out of play behind one flag and made the rite raise a surge of ordinary dead instead. His code and tests are kept for when he gets a model.
  7. A map that flickered. The journal map's ink-in animation restarted on every redraw, so walking with the map open left it blank. It is now timed from when the map opens.
  8. Horror that is still fair. Jump scares that come from nowhere feel cheap, and can hurt some players. Every scare is telegraphed (a sound, a light, a silence), and a hook audits each one against the Reduced and Off settings.
  9. Fitting a whole game in a browser. Instanced ground cover, props and effects, lanterns culled when they're out of range, and a fixed-step game loop keep it smooth on an ordinary laptop.

Accomplishments that we're proud of

  • A full mystery game, start to finish: three cases, a final rite and multiple endings, playable free in the browser.
  • About 2,900 unit tests, half of the files property-based, plus a browser test that plays the whole game.
  • The spooky UI is how you play: the oil gauge, map, journal and objective are all part of the world.
  • Accessible horror: every scare can be turned down or off, with captions for every important sound.
  • Fully open source (MIT), with all the Kiro specs, steering and hooks in /.kiro for anyone to learn from.

What we learned

  • Specs beat vibe coding for anything big. When playtests found problems, they became new specs instead of drifting edits, so the game never lost its shape.
  • Steering is worth writing early. One horror-design file meant every scare came out accessible without my asking each time.
  • Property tests find bugs you would never think to test for. NaNs, rounding and overflow turned up in code that "obviously worked".
  • Playtest with a fresh player in week one, not week three. Tests keep code correct; only players show you where they get lost.
  • Keep the whole-game test green every day. When it fell behind for a week, changed puzzles went unnoticed.

What's next for Last Rites

  • Father Crane, with a real model: bring the boss fight back.
  • More cases, each a new stage in Hollowmere's history.
  • Controller support, and maybe a tablet version.
  • More languages, building on the subtitles already in place.
  • Community cases: a format for players to write their own mysteries.

Built With

Share this project:

Updates

Submission history