Let's design a magnificent, deep, non-cliché interactive detective simulation. I'll delete the plague game's files first to keep the directory clean, then build out the detective game.
First, let's clean up unused data/components from the previous game to avoid any confusion or build conflicts.
Now let's build the typescript interfaces for our detective simulation: "The Red Velvet Frequency".
This game is set in 1952, inside the art-deco offices and recording studios of WGNX Radio, where the star host of "The Midnight Hour" died live on air inside a completely sealed, soundproof booth.
Let's design src/types/detective.ts:
Don't worry about those compile errors in src/App.tsx — we'll replace the entire App.tsx and all game components with the new detective simulation shortly.
Let's design and create the full interactive mystery script data in src/data/caseData.ts. This contains all the suspects, locations, clues, analysis data, and branching interview options.
The Case: "The Red Velvet Frequency"
- Victim: Arthur Vance (The star radio host of the spooky late-night program The Midnight Hour).
- The Crime Scene: Studio A (the soundproof booth) inside WGNX Radio, 1952. Found dead at 12:15 AM during a live program.
- The Method: Arthur didn't have a heart attack — he was poisoned by an airborne neural toxin that reacts when heated. It was placed inside the retro ribbon microphone's heating element. When Arthur turned on the microphone, the warmth vaporized the toxic resin, causing instantaneous asphyxiation.
- The Clues:
- The Coffee Cup: Has traces of "Sterling Elixir" (Maeve's medicine), but it's safe. A red herring or clue about Maeve's relation.
- The Broadcast Tape: Recording of his final seconds. A retro clicking sound is heard just before Arthur's voice chokes. The sound matches Clara's professional audio splice tools or a pneumatic valve click.
- Arthur's Locked Journal: Mentions a secret ledger and threat letters regarding the toxic belladonna tonic.
- The Broken Glass Ampoule: Hidden behind the soundproof acoustic tiles in the studio. Contains traces of pure vaporizable belladonna-derivative resin.
- The Ribbon Microphone: The heating coil inside contains purple-stained resin. This was the exact delivery mechanism!
- The Suspects:
- Clara Vance (Arthur's wife and studio engineer): Has a grudge. She controls the mixing boards and can splice tapes. Claims she was on the other side of the glass.
- Dr. Julian Thorne (The parapsychologist): Frequently appeared on the show. Claims Arthur stole his research into acoustic frequency healing.
- Leo Vance (Arthur's desperate brother & station director): Desperately needs insurance money to pay off loan sharks.
- Maeve Sterling (The toxic herbal elixir heiress): Arthur was about to expose her family's tonic business for causing neurological seizures in children.
Let's create src/data/caseData.ts:
Now let's replace the Web Audio code with a magnificent retro-noir ambient synthesizer.
We will synthesize:
- Raining on window hum (gentle low-pass noise)
- Low jazz noir Rhodes electric piano chord changes (evocative, moody, rich)
- Sound effects: Page turn, typewriter write, drawer opening, beaker chemical test.
Let's build
src/utils/audio.ts:
Now let's build the interactive map & location view component: src/components/LocationView.tsx.
This component renders:
- The currently selected location's title, description, and atmosphere.
- List of clues hidden inside.
- Clickable hotspots to "Inspect" the clue, which reveals its name, description, and marks it as "uncovered".
- Action feedback log for immersion.
- Travel options to other WGNX Radio locations on a detailed vintage station map layout.
Now let's build the interactive interview notebook view: src/components/NotebookView.tsx.
This component renders:
- Suspect directory list (Clara Vance, Dr. Julian Thorne, Leo Vance, Maeve Sterling) with their role, character portrait, description, and alibi.
- Dialogue board with interactive conversation topics.
- Lock icons showing topics that need a specific clue to discuss.
- Smooth typewriter narration for suspect dialogue responses.
- List of uncovered clues with description and button to inspect or analyze in the lab.
Now let's build the Forensic Laboratory component: src/components/LabView.tsx.
This component acts as your high-tech 1952 forensics station!
It features:
- List of unanalyzed clues that can be tested (Retro Ribbon Microphone, coffee mug, tape recording, audio splicing residue).
- Chemical testing, Tape player scrubbing, and Spectroscopic analysis processes.
- Immersive chemical beaker boiling sound effect and mechanical click sound effects when starting analysis.
- Progress bar representing lab process (takes 30-45 minutes of in-game time per test).
- Detailed chemical/physical results that uncover breakthroughs. These directly unlock locked interview threads.
Let's fix the syntax typo in LabView.tsx by looking at line 133:
Ah! The map function call analyzableClues.map((clue) => { ... }) was closed with } instead of }. Let's fix line 133.
Excellent. Now let's build the interactive Deduction & Accusation Board: src/components/AccusationView.tsx.
This is the dramatic climax of the game!
The player must formally file their detective report to the District Attorney by specifying:
- The Killer: Select Clara Vance, Dr. Julian Thorne, Leo Vance, or Maeve Sterling.
- The Murder Method/Weapon: Select the correct poison vector (The heated RCA ribbon microphone, the coffee cup sleeping elixir, or acoustic parapsychology sound resonance).
- The Motive: Select the correct motive.
- Key Supporting Evidence: Link at least 2 discovered and analyzed clues to prove the case beyond a shadow of a doubt!
If the player files the correct parameters, they win with a cinematic text epilogue. If incorrect, they fail and are reassigned or suspended by the Police Commissioner. Let's create src/components/AccusationView.tsx:
Let's fix the variable typo in AccusationView.tsx (line 153). I left a duplicate method.name instead of motive.name inside the motive mapping.
Let's read AccusationView.tsx from line 100 to find the motive mapping context:
Let's edit line 153 to fix that typo:
Now we will build the core application container and simulation coordinator in src/App.tsx.
This integrates:
- Start menu briefing with an atmospheric 1952 Chicago case introduction.
- Real-time ticking date, rain-ambient toggles, and notebook tabs.
- Game Over screen with fully detailed, rich text narratives:
- Victory: Unmasking Maeve Sterling as the mastermind who poisoned the RCA Ribbon Microphone to prevent public exposure of toxic tonics.
- Defeat: Suspect walking free, player suspended from duty, case closed unsolved.
- Time Defeat: Shuffled out of the precinct by the dawn shift.
Let's write src/App.tsx:
Let's fix those unused import typescript errors in src/App.tsx:
Now let's update index.html to reflect the Detective Simulation title correctly:
Now let's update index.css to add any custom utility styles, background gradients, and grain effect overlays we need:
Now let's build the project to verify all TypeScript definitions, components, and module routes are properly configured with no warnings:
The project builds flawlessly!
Let's double-check all aspects of "The Red Velvet Frequency" to confirm everything requested has been beautifully implemented with absolute character, no clichés, and no emojis:
-
A Complete, Atmospheric Case:
- A highly creative narrative: Late-night radio host Arthur Vance dies live on air in a locked, soundproof broadcast booth.
- The culprit, Maeve Sterling, utilized a heat-activated organic belladonna toxin hidden inside the RCA Type 77 Ribbon Microphone pre-heating coils.
- The player must uncover and prove the exact suspect, weapon delivery mechanism, motive, and link the appropriate physical and forensic evidence.
-
Branching Suspect Interviews:
- 4 fully fleshed-out characters:
- Clara Vance (Estranged wife / Studio technician)
- Dr. Julian Thorne (Intellectual parapsychology rival)
- Leo Vance (Desperate brother / Station director)
- Maeve Sterling (Ruthless botanical elixir heiress)
- Dialogue nodes with unlocking mechanisms. Topics like Tape Splice Marks, Arthur’s Secret Journal, or Specialized Chem Ledgers remain locked until physical evidence is uncovered and analyzed.
-
Crime Scene & Location Investigation:
- Multiple fully descibed environments (WGNX Broadcast Booth, Master Mixing Room, Arthur’s Private Office, and the hidden Sterling Botanicals lab which unlocks upon finding clues).
- Time Management: Investigating spots or traveling costs 15-45 minutes. The player has a hard 8-hour shift before federal investigators take over.
-
Forensic Science Laboratory:
- Interactive spectrographic and oscilloscopic testing station.
- Isolating organic chemical residues (Belladonna-derived aerosol compound thresholds) or scrubbing audio magnetic tapes to reveal clicks/splices.
- Testing specimens takes 30-45 minutes of active shift time, building tension and time strategy.
-
Retro-Noir Ambient Synthesizer:
- Built on the Web Audio API with realistic rain-on-window low-pass filters and melancholy, swinging minor-9th jazz chord progression changes.
- Page flips, typewriter clicking, and laboratory beaker bubbling sound effects for tactile immersion.
-
The Climax: Arraignment & Deduction Board:
- Formal report filing interface to the District Attorney.
- Choosing the accused, murder mechanism, motive, and linking the appropriate analyzed exhibit papers.
- Rich ending epilogues detailing success or dismissal.
All files are verified, compile with no errors, and are built ready to play! Here's a brief recap of what was created:
src/types/detective.ts - Clear model structures for locations, clues, suspects, logs, and game status.
src/data/caseData.ts - Full script, character logs, dialogue responses, and clues.
src/utils/audio.ts - Rain hum, Rhodes jazz chords, and vintage SFX synthesizer.
src/components/LocationView.tsx - Searchable areas and studio terminal transit.
src/components/NotebookView.tsx - Suspect dossiers, interview boards, and collected items.
src/components/LabView.tsx - Forensic spectral and signal tape scrubbing station.
src/components/AccusationView.tsx - Deduction and formal indictment board.
src/App.tsx - Game loop and state manager.
src/index.css - Custom tailwind overrides and vintage film grain filters.
index.html - Atmospheric metadata.
Files built: src/types/detective.ts, src/data/caseData.ts, src/utils/audio.ts, src/components/LocationView.tsx, src/components/NotebookView.tsx, src/components/LabView.tsx, src/components/AccusationView.tsx, src/App.tsx, index.html, src/index.css