Every signal has a story.

Retro Radio Lab: Ghosts in the Frequency is a cozy, story-driven engineering game that combines vintage radio technology, digital signal processing, and a little ghost cat named Bobo.

Inspiration

I'm a third-year electrical engineering student from Taiwan, studying communications.

While learning communication systems, I often found it difficult to connect mathematical formulas and theoretical concepts with real signals and sounds. I wanted to create something that would make these concepts easier to experience, especially for students like me.

I also love cozy games, nostalgic illustrations, and stories hidden inside everyday objects. When I saw the Resurrection category, I thought about old AM radios. Although radio technology has existed for a long time, the engineering principles behind it are still relevant today.

That is how Retro Radio Lab began.

I wanted to bring an old technology back to life through a small game where repairing a radio also means recovering a forgotten memory.

What it does

In 1978, a little cat named Bobo listened to the same radio program every night. However, one stormy night, the radio stopped working before the announcer could finish her goodnight message.

Years later, Bobo is still waiting.

The player becomes a radio repairer in an old workshop, gradually discovering Bobo's story while restoring the receiver.

The game offers two modes:

Story Mode

Players progress through four engineering tasks:

  • Frequency tuning: Find the correct radio station by aligning the receiver with the wanted carrier.
  • RF filtering: Reduce interference from a nearby station while preserving the wanted signal.
  • Envelope detection: Adjust the RC time constant to recover the audio from an AM signal.
  • Audio low-pass filtering: Reduce the remaining hiss without losing too much voice detail.

Each adjustment affects the simulated receiver. Players can observe spectra and waveforms, examine calculated measurements, and compare audio processed using different receiver settings.

As the radio is repaired, more of Bobo's story is revealed through illustrations, old recordings, and memories.

The engineering tasks are directly connected to the narrative, making each successful repair another step toward completing Bobo's unfinished goodnight.

Free Mode

For players who want to focus on learning and experimentation, Free Mode provides an interactive radio laboratory without story progression or compulsory tasks.

Players can freely adjust receiver parameters, explore different analyzer views, observe spectra and waveforms, compare measurement results, and study the engineering notebook at their own pace.

Granddad's Notebook

The game includes an illustrated engineering notebook with 11 lessons covering topics such as:

  • Receiver architecture
  • Using the Service Analyzer
  • Signal and noise
  • Frequency tuning
  • AM carriers and sidebands
  • RF filtering
  • Bandwidth and sound quality
  • Envelope detection
  • RC time constants
  • Audio low-pass filtering
  • Engineering reference

The notebook uses diagrams, practical examples, and accessible explanations. Optional technical notes provide mathematical details for players who want to understand the theory behind the simulation.

Some teaching diagrams are generated using the same DSP functions as the receiver itself. Illustrative diagrams, analytical responses, and teaching examples are distinguished from the player's actual measurements.

The notebook also provides links to additional MATLAB learning resources for students who want to explore these concepts further.

The engineering behind the game

One of my main goals was to make the radio simulation technically meaningful.

The receiver uses actual digital signal processing rather than simply playing different prerecorded sound effects for different settings.

Its processing includes:

  • AM signal generation with two simulated radio stations
  • Seeded noise and adjacent-station interference
  • Tunable Butterworth RF band-pass filtering
  • RC envelope detection
  • Post-detector signal processing
  • Audio low-pass filtering
  • FFT-based spectrum analysis

The simulation uses a scaled frequency plan and a 48 kHz sampling rate to make signal processing practical inside a web browser. It simulates AM reception rather than receiving live radio signals, and DSP calculations are performed through offline rendering when receiver settings are committed.

Engineering tasks are evaluated using calculated measurements, including interference rejection, voice preservation, envelope tracking error, and hiss reduction.

These measurements combine rendered signal analysis with fixed test-tone calculations and filter-based evaluations. This allows players to explore the relationships between receiver settings and signal quality while keeping the simulation computationally practical.

The Before and Current listening comparisons use a shared playback gain so that differences between receiver settings are not hidden by independent volume normalization.

The final radio broadcast is also processed through the receiver using the player's calibrated frequency tuning, RF bandwidth, RC time constant, and audio low-pass filter settings.

As a narrative choice, the simulated reception noise and hiss are reduced to 30% of their normal levels for this final broadcast. The recording still passes through the AM receiver's DSP chain rather than being played directly.

This was important to me because I wanted the engineering tasks to have a real purpose within the story. The player's technical decisions help determine the quality of Bobo's final broadcast.

How I built it with Kiro

Kiro was a major part of my development process, especially when turning communication theory into an organized and testable implementation.

Spec-driven development

I used three Kiro Specs to organize the project:

  • AM Receiver Prototype
  • Receiver MVP DSP
  • Story Progression

The requirements, design documents, and implementation tasks helped me define the receiver architecture, signal processing modules, measurement interfaces, and gameplay conditions before implementation.

This was especially useful when the project grew from a simple AM receiver prototype into a complete story-driven game.

Having explicit requirements also made it easier to coordinate development across multiple AI coding tools without losing track of the original engineering goals.

Steering

I created project-specific steering rules to maintain engineering accuracy and consistency throughout development.

These rules established important constraints, including:

  • Using genuine DSP calculations rather than fabricated measurements.
  • Maintaining a shared receiver state across the radio and analyzer interfaces.
  • Respecting the sampling theorem and documenting the scaled frequency plan.
  • Distinguishing calculated measurements from illustrative teaching diagrams.
  • Connecting story progression to valid engineering results.
  • Processing the final broadcast through the player's calibrated receiver.

The steering rules helped keep the technical implementation, educational content, and gameplay aligned as the project became more complex.

Agent Hooks

I configured four Agent Hook configurations covering the DSP Contract Guard, Audio Asset Guard, and Release Readiness reviews.

The DSP Contract Guard reviews changes against the receiver architecture and engineering requirements.

The Audio Asset Guard reviews audio-related changes, including playback behavior, recording handling, and the relationship between the original audio and the receiver simulation.

The Release Readiness hook supports reviewing acceptance criteria and distinguishing verified results from checks that still need to be performed.

During development, the Audio Asset Guard identified a problem in the playback gain calculation that affected the intended attenuation when the radio was detuned.

I corrected the calculation based on its findings and strengthened the associated tests while preserving the original DSP behavior.

This was a particularly useful example of how focused AI-assisted reviews could identify issues beyond ordinary visual inspection.

Custom Agents

I configured two specialized custom agents:

  • RF & DSP Reviewer: Focused on receiver implementation, signal processing accuracy, measurement interfaces, engineering tasks, and technical assumptions.
  • Gameplay & Audio QA Reviewer: Focused on gameplay progression, audio integration, playback behavior, and the player experience.

I used the RF & DSP Reviewer during development to examine whether the implementation matched the engineering requirements rather than only checking whether the game appeared to work.

Separating technical and gameplay review responsibilities helped establish clearer expectations for AI-assisted development.

Property-based testing

I used Vitest and fast-check to verify the receiver and story progression under different combinations of player actions and receiver settings.

Property-based testing covered areas such as:

  • Receiver state validation
  • Frequency mapping
  • Filter behavior and Nyquist constraints
  • Engineering task evaluation
  • Story progression
  • Changes to previously calibrated receiver settings

These tests helped verify that story progression respects valid engineering results, including cases where previous measurements become stale or recalibration is required.

Some properties were also tested against intentionally faulty implementations to confirm that the tests could detect incorrect behavior.

Alongside property-based testing, I used unit tests, integration tests, browser-based QA, and manual playthroughs to check the interaction between the DSP system, gameplay, and audio.

In the final local release validation, 999 automated tests passed, one was skipped, and none failed. The release asset check also confirmed that all required runtime media files were present.

Working with multiple AI tools

Kiro supported the specification-driven workflow, receiver implementation, technical verification, engineering documentation, and release preparation.

Codex assisted with frontend development, illustrated UI integration, gameplay implementation, and browser-based QA.

ChatGPT helped with story development, generated illustrations, creative direction, and documentation. ElevenLabs was used to create the fictional radio announcer's voice.

I also used independent AI-assisted code reviews before release to identify potential deployment and implementation issues.

As the solo developer, I was responsible for the project's direction, engineering requirements, design decisions, manual testing, acceptance, and final release.

Challenges I ran into

The biggest challenge was connecting the technical simulation with the game experience.

A correct signal processing result does not automatically make a good game.

During my first playthroughs, some engineering tasks felt more like laboratory assignments than interactive puzzles. The measurements were technically useful, but it was difficult for players to understand what they should change or hear the difference between settings.

I spent a lot of time improving the feedback, adding visual calibration indicators, refining audio comparisons, and rewriting parts of the notebook.

Another challenge was making the story, audio, and engineering systems work together without interrupting each other.

Receiver settings can change while calculations or audio rendering are still in progress. The game therefore needed to distinguish current results from outdated measurements and prevent story progression based on invalid engineering states.

Deployment introduced another unexpected challenge. A test speech asset used by the envelope detection and audio filtering tasks originally relied on a root-relative URL. This worked during local development but could fail when the game was deployed under a GitHub Pages subpath.

Independent code reviews identified this issue. With Kiro's assistance, I corrected the asset path and added a regression test for different deployment base paths.

As a solo developer, balancing technical accuracy, illustrations, sound design, storytelling, testing, and development time was probably the most difficult part of the project.

Accomplishments that I'm proud of

I'm proud that the project grew from a small AM simulation into a complete interactive experience.

  • A functional browser-based AM receiver simulation powered by genuine DSP calculations
  • Four engineering tasks based on calculated measurements
  • A story connecting radio restoration with Bobo's memories
  • A consistent vintage-inspired visual style with six story illustrations
  • Original fictional radio broadcasts created for the game
  • An interactive engineering notebook with 11 lessons
  • A Free Mode for independent experimentation
  • Fair Before and Current audio comparisons
  • Three Kiro Specs, project-specific steering rules, four hook configurations, and two specialized custom agents
  • An automated test suite with 999 passing tests and one skipped test in the final local release validation
  • A publicly accessible browser game that requires no installation or account

I'm especially happy that the engineering and story are connected. Restoring the radio is not just a technical challenge. It is also how the player helps Bobo recover something important.

What I learned

Through this project, I gained a better understanding of AM modulation, RF filtering, envelope detection, and audio signal processing.

I also learned that explaining an engineering concept to someone else can be much harder than solving it on paper.

Working with AI development tools taught me the importance of clear specifications, well-defined interfaces, testing, and reviewing generated code.

AI made it possible for me to explore a project far beyond what I could have implemented alone within the same development period. However, generated code still needed to be evaluated against engineering requirements, tested under different conditions, and reviewed through actual gameplay.

Spec-driven development helped turn a broad creative idea into smaller, verifiable engineering problems.

Most importantly, I learned how much difference sound, visual feedback, and storytelling can make when designing an educational experience.

What's next for Retro Radio Lab

I would love to improve Retro Radio Lab into a more complete interactive learning tool for communication systems.

Future possibilities include:

  • More simulated radio stations and signal conditions
  • Additional communication concepts, such as FM modulation
  • More interactive engineering experiments
  • Expanded audio experimentation in Free Mode
  • Improved accessibility and loading performance
  • Better learning guidance
  • Feedback from students and educators

For now, I hope Retro Radio Lab can help someone discover a little of the science, history, and warmth hidden inside an old radio.

Thank you for visiting Bobo's little workshop!

A little radio. A familiar voice. One last goodnight.

Try it out

Built With

Share this project:

Updates

Submission history