Tickd.ai
← The Tickd Guide

Inspiration

How to Build a Fictional 1960s Cold War Radar Screen and Decryption Terminal in the Browser Using Claude 3.5 Sonnet

Step back in time to a subterranean bunker. Learn how to prompt Claude 3.5 Sonnet to write a fully interactive, retro radar simulation using SVG, JavaScript, and the Web Audio API.

Updated 10/31/2026

The Aesthetic of Atmospheric Tension

There is an undeniable, spine-tingling aesthetic to Cold War-era military control rooms. The low hum of massive cooling fans, the rhythmic sweeping of a green phosphor cathode-ray tube, the click-clack of heavy physical relays, and the sudden, terrifying blip of an unidentified contact.

While we cannot easily build a room-sized analogue computer in our flats, we can build a remarkably convincing simulation of one right in the browser. Using Claude, specifically the powerhouse Claude 3.5 Sonnet model, you can generate a fully functional, highly interactive 1960s military radar screen and decryption terminal. This isn't just a static mock-up; it features real sweeping math, interactive target clicking, procedural decryption mini-games, and authentic retro sound synthesis.

In this guide, we will walk through the architectural blueprint and the exact prompts needed to instruct Claude to build this single-file web application from scratch.

Which AI should I use for this?

Tickd is independent and not affiliated with any AI company.

Why SVG and Web Audio are Your Best Friends

When prompting an LLM to build visual interfaces, developers often default to heavy external canvas libraries or complex frameworks like React. For a retro terminal, this is a mistake.

Instead, we want Claude to use raw SVG (Scalable Vector Graphics) for the visual interface, and the native browser Web Audio API for the soundscape.

SVG is perfect here because its DOM nodes are easy for Claude to manipulate programmatically. We can apply retro CRT visual effects like CSS radial gradients (for that classic phosphorus glow), CSS animations (for screen flicker), and SVG filters (for blur and scanlines) directly to vector elements.

Meanwhile, the Web Audio API allows us to synthesize authentic-sounding analogue audio on the fly. We don’t need to download external audio files, which would break the self-contained nature of our single-file app. We can prompt Claude to build custom oscillators to generate a low-frequency mains hum, a sweep-triggered sonar ping, and high-frequency typing clicks.

The Prompt Blueprint: Command the Terminal into Existence

To get the best result from Claude 3.5 Sonnet, we need to provide a highly structured system prompt. We want a single, copy-pasteable HTML file containing inline CSS and JavaScript. This makes it incredibly easy to run locally or host as a static site.

Here is the prompt to feed into Claude:

`text Write a complete, single-file HTML5 application that simulates a 1960s Cold War military radar and decryption terminal.

Use Tailwind CSS for basic layout scaffolding, but construct the entire radar screen and terminal console using raw interactive inline SVG and vanilla JavaScript.

The application must have two main panels side-by-side on a dark charcoal background: 1. The Radar Screen: A circular SVG radar display with a continuous 360-degree sweep line. When the sweep line passes a coordinate containing a hidden 'blip' (target), the blip should light up in bright green phosphor, then fade out gradually over time. Clicking a blip should select it. 2. The Decryption Terminal: A retro green-text terminal output. When a radar blip is selected, it displays 'INTERCEPTED SIGNAL: ENCRYPTED'. The user must solve a simple procedural decryption minigame (like matching hex codes or stopping a fast-scrolling sequence of characters on the correct match) to reveal a fictional Soviet or Allied military transmission from 1962.

Audio Requirements: Integrate the Web Audio API (instantiated on the first user interaction) to generate: - A constant, subtle low-frequency hum (around 60Hz) with an oscillator. - A sonar-like 'ping' sound that triggers whenever the radar sweep line intersects with an active blip, with the volume mapped to the blip's intensity. - High-pitched, mechanical clicking sounds when typing or interacting with the console.

Visual Styling: Use CSS animations to apply a subtle, constant screen flicker and a soft radial gradient overlay to mimic a curved CRT glass monitor. The color palette must be strictly retro-military: deep forest greens, stark neon phosphor greens, charcoal greys, and warning ambers. `

Analysing the Code Structure Claude Generates

When Claude processes this, it will output a beautiful monolithic block of code. Let’s look at what makes this vintage military gear tick under the hood, and how the critical components are wired together.

The Phosphorus Sweep Math To make the radar sweep feel authentic, the JavaScript needs to calculate the angle of the sweep line and compare it to the polar coordinates of our active blips. Claude will typically set up an animation loop using `requestAnimationFrame`:

`javascript let angle = 0; function updateRadar() { angle = (angle + speed) % 360; sweepLine.setAttribute('transform', rotate(${angle} 250 250)); blips.forEach(blip => { // Calculate angle to the blip let blipAngle = Math.atan2(blip.y - 250, blip.x - 250) * (180 / Math.PI); if (blipAngle < 0) blipAngle += 360; // Check if sweep line is crossing the blip if (Math.abs(angle - blipAngle) < 2) { triggerBlipActivation(blip); } }); requestAnimationFrame(updateRadar); } `

Synthesizing the Audio The Web Audio API configuration generated by Claude will instantiate an `AudioContext`. Pay close attention to how it handles the background hum—it should use a low-pass filter to keep the 60Hz hum warm and non-intrusive:

`javascript const audioCtx = new (window.AudioContext || window.webkitAudioContext)(); const humOsc = audioCtx.createOscillator(); const lowPass = audioCtx.createBiquadFilter(); const gainNode = audioCtx.createGain();

humOsc.type = 'sine'; humOsc.frequency.setValueAtTime(60, audioCtx.currentTime); lowPass.type = 'lowpass'; lowPass.frequency.setValueAtTime(120, audioCtx.currentTime);

gainNode.gain.setValueAtTime(0.05, audioCtx.currentTime); // Keep it quiet!

humOsc.connect(lowPass); lowPass.connect(gainNode); gainNode.connect(audioCtx.destination); humOsc.start(); `

Customising and Troubleshooting Your Retro Terminal

Once Claude renders your application, you can test it directly in your browser. If you find yourself wanting to expand the simulation, ask Claude to add features like a coordinates map, real-time logging of fictional weather events, or an audible warning alarm when a "critical threat level" blip appears on the screen.

Sometimes, modern browser security features will block the Web Audio API from starting automatically until a user click is registered. If your simulator runs silently, ensure you have included an "INITIALISE SYSTEM" power button on your console UI. Clicking this button should trigger audioCtx.resume() and kick off the ambient hum.

If you run into any weird browser scaling quirks or audio initialization errors that tick you off, check out our comprehensive Claude troubleshooting articles to learn how to debug common Javascript generator errors.

Load the file up, turn down the lights, plug in your headphones, and lose yourself in the eerie, simulated green glow of the height of the Cold War.

claudejavascriptsvgcreative-codinginspiration

Keep going

Build something with the prompt generator, decode the jargon in the glossary, or compare the tools on our platform deep-dives.