Inspiration
I wanted to build a detective game that feels like reading a case file: you scroll through evidence, compare details, follow leads, and finally commit to a single accusation. Reddit’s post format is perfect for that “case dossier” vibe, so I built The Last Clue as a Reddit-native experience.
What it does
The Last Clue is a short-form mystery game. You investigate locations, interrogate suspects, analyze evidence, and make a final accusation. One wrong accusation ends the case.
How I built it
The project is a Devvit Web app using a React client inside Reddit. The game is data-driven: each case is defined in JSON and rendered as screens (locations, evidence, suspects, accusation). I designed the UI on a fixed 16:9 canvas and added responsive scaling so it fits any window size, including mobile.
Challenges
The biggest challenge was layout and device behavior inside Reddit’s webview/iframe, especially on mobile where orientation and viewport sizing can be tricky. I solved it by treating the game as a 1920×1080 stage and applying transform-based scaling (and optional rotation handling) so content stays readable without cropping.
Built With
- devvit-web-(reddit)
- react
- typescript
- vite
- zustand
Log in or sign up for Devpost to join the conversation.