Detective Game
LiveA narrative detective game built to out-design a viral mobile hit
Role: Solo developer
Solo · Since Jul 2026 · Public repo
Investigate crime scenes, recover evidence off a suspect's actual phone, interrogate suspects, connect evidence to a suspect on a corkboard, and build a real means/motive/opportunity case across four full cases, each with its own set-dressed crime scene, procedurally-generated suspect portraits, and a fully synthesized audio engine (zero recorded samples).
Problem
A wave of mobile games built entirely around reading a stranger's simulated phone had gone viral. I already had a detective game with three layers that genre skips (a physical crime scene, an interrogation system, an evidence board). The gap was that the phone/PIN/messaging mechanic those games built their whole identity on didn't exist here yet, and closing it had to be done with an entirely original app ecosystem, icons, and UI.
Solution
Built a real digital-forensics layer from scratch, with its own invented app ecosystem (ChatVía, Anotta, Vozal, NubePlus) inside an actual phone frame with alternating chat bubbles, plus a means/motive/opportunity accusation system with four distinct endings, a narrative tension mechanic that can permanently lock evidence if the player stalls, and a connectable evidence board. None of it was bolted onto the old architecture; the same CaseEngine/EvidenceEngine/InterrogationEngine from the original build still drive it, extended, not replaced.
Architecture highlights
- CaseEngine, EvidenceEngine, InterrogationEngine, DigitalForensicsEngine, and RankEngine decoupled from the 9-scene UI flow (MainMenu → CaseSelection → CaseIntro → CrimeScene → Interrogation → EvidenceBoard → DigitalForensics → Accusation → Resolution)
- 4 full cases implemented as data, independent of the engines that run them: one built entirely around digital evidence recovered from a victim's phone
- Means/motive/opportunity accusation system with 4 distinct endings, backed by a data-integrity test that every piece of evidence is actually obtainable and no tension-lock can cut off the only path to something the case requires
- A tension mechanic that can permanently lock a digital thread/note if the player stalls too long, always with a redundant dialogue path, enforced by an automated test, not just careful authoring
- A connectable evidence board (tap evidence, tap a suspect, a real SVG string connects them from live DOM positions) scored against the case's actual solution at Resolution
- 16 procedurally-generated SVG suspect portraits, every trait (skin tone, hair, clothing, accessories) derived from a hash of the suspect's id, so the same suspect always renders the same face with nothing copied from anywhere
More highlights (2)
- A synthesized audio engine (oscillators/filters/noise buffers, zero recorded samples) with per-scene ambient beds and a distinct chord for each of the 4 resolution endings
- Zustand for global game state, Framer Motion for scene transitions, 444 Vitest tests including store-level audio side effects verified with spies