Inspiration

I really like games like Papers, Please, where you are in charge of figuring out if someone is guilty or not. I also like solving puzzles and mysteries, so I wanted to mash the two together. You dig through records on a real website and try to figure out who's lying. You get points for guessing right and lose points for guessing wrong.

What it does

Case Closed at UB is a short desk duty game. You dig through a fake early 2000s university records site, pull clues onto your clipboard, and call suspects in. You pick through options based on the evidence you present. They answer with unique lines and are voiced as well, then you get to either hold them for a final verdict after you see everyone, or release them if you really think they are innocent! There is a very large directory built into the website so it feels different every time.

How I built it

It's built in Unity, a game engine. The animations of the characters are built with Mixamo for the sitting, walking and standing up states. The scene was all hand placed models to try and sell the look of a UB Investigation Office. The records site is a real website written in JavaScript, and a real browser is displayed in the game, the website is powered by Netlify. It sends its information to Unity so you can add your evidence to the game. The dialogue runs on an offline dialogue tree, and ElevenLabs goes through a custom proxy server to deliver the voices, so the API keys aren't baked into the Unity files. I also premade the sound effects and music using ElevenLabs. I wrote a couple of Python tools to build the case pack and the voice lines, and once the dialogue was finished I turned them off so they can't overwrite it.

Challenges I ran into

I originally had Gemini generating the suspect dialogue, but I kept running into billing problems and 404 errors that took up a big part of the night. I cut it and built offline dialogue trees instead, using Claude to help write and refine the lines. Keeping my git branches organized while the scene kept changing was also pretty messy. At one point the voices stopped working completely because a ScriptableObject GUID broke, which took a while to track down. I also had an issue where clicking things in the case file would open the computer's actual browser instead of staying in the game.

Accomplishments that I'm proud of

I'm really proud of getting a real browser working inside the game. Getting Unity and the website to send live requests back and forth was a lot harder than I expected, but it works. I'm also proud that I was able to pivot after spending hours trying to get the Gemini API working, instead of getting stuck on it. On top of that, I optimized the ElevenLabs voices so they respond quickly, which makes talking to the suspects feel a lot more natural.

What I learned

I learned that letting players type anything they want actually makes the detective part less fun, because it's harder to know what to ask. Picking from questions and having everything happen on the desk in front of you works a lot better. I also learned that keeping one main branch to merge everything into saves a lot of headaches, and that API keys should always stay on a server and not inside the game.

What's next for CaseClosed

I want to make more handcrafted cases, since I'm not fully happy with how the current ones get solved. I'd also like to add better animations that show nervousness, confidence, and other emotions, so players can read whether someone is lying. I will also publish this to itch.io so I can feedback!

Built With

Share this project:

Updates

Submission history