Inspiration
Real-world social engineering thrives on artificial urgency and broken verification loops. On Mars, that problem becomes physical law: at an Earth–Mars distance of roughly $d \approx 2.28 \times 10^{11}\text{ m}$, a radio signal traveling at the speed of light ($c \approx 2.998 \times 10^8\text{ m/s}$) has a minimum one-way delay of:
$$t_{\text{light}} = \frac{d}{c} \approx 760\text{ s} \text{ (12 minutes, 40 seconds)}$$
We wanted to build an "Out of this World" game-jam thriller inspired by 1970s NASA mission-control manuals and modern editorial design—where every spoofed Mars directive maps directly to a real-world cyberattack tactic (typosquatting, replay attacks, anti-verification pressure, and lateral spoofing).
What it does
SIGNAL DELAY puts you in command of Mars Base Ares for one high-stakes 4-minute shift ($240\text{ s}$):
- Balance 3 Critical Resources: Oxygen, Power, and Crew Trust drain continuously; hitting $0\%$ on any meter ends the watch.
- 4 Actions per Transmission:
Obey,Reject,Inspect, orVerifywith Earth—a real-time $60\text{ s}$ round-trip query while resources keep draining and new messages keep arriving. - Forensic Inspection: Cross-check 4 telemetry channels—speed-of-light timestamp math, rotating watch phrase (
CALYPSO-7), Deep Space Network (DSN) relay routing, and urgency tone. - Adaptive Impostor Engine: A deterministic rule engine tracks which clues you rely on and adapts future fakes to spoof those clues while keeping every message solvable.
- 3D Tactical Telemetry & Advisor: Interactive Three.js 3D Mars globe (
PIA02992), 3D Ares habitat dome with live resource pillars, an Agent Training Lab to train a local detection profile across $10\text{–}150$ simulated shifts, and the ARES-7 Advisor Chatbot. - Forensic Debrief Timeline: Every run ends with a chronological replay showing what gave each fake away and its matching real-world scam tactic.
How we built it
We architected SIGNAL DELAY as a TypeScript monorepo (shared, server, client):
- Shared Engine (
@signal-delay/shared): Pure deterministicGameEngine, Mulberry32 seeded PRNG, 25 handwritten transmissions + 3 interactive training transmissions,impostorBot.tsadaptation engine, andtrainingAgent.tsperceptron-style simulator. - Authoritative Backend (
@signal-delay/server): Node.js, Fastify, Socket.IO, and SQLite (better-sqlite3). The server owns shift timers, resource drain, and message truth—never leakingisImpostororrealWorldTacticto the client before resolution. Includes HMAC-SHA256 session tokens,scryptpassword hashing, rate limiting, row-level ownership checks, online SQLite backups, and first-party analytics/error telemetry. - Frontend (
@signal-delay/client): React 18, TypeScript, Vite, Zustand, GSAP, Three.js, and plain CSS variables (#101214,#E9E4D8,#FF5A1F,#2F8F83,#C92A2A), with a zero-internet Offline Showcase Mode fallback, Web Audio API synthesizer with live accessibility captions, and public-domain NASA/JPL-Caltech photography treated as duotone.
Challenges we ran into
- Keeping an Adaptive Impostor Fair: If the impostor simply fixed every clue a player checked, messages could become unsolvable coin flips. We solved this with a fallback-anomaly guarantee in
adaptImpostorMessageso at least one forensic inconsistency always remains. - WebGL Resource Management & Bundle Size: Lazy-loading
Three.jsviaReact.lazyandmanualChunkskept the initial client entry under $27\text{ kB}$ gzipped, whileResizeObserverand full scene traversal disposal prevented GPU memory leaks when switching views. - Serverless vs. Stateful Deployment: Since Vercel hosts static client builds without native
better-sqlite3C++ addons, we configuredvercel.jsonto buildshared+clientand ensured our client seamlessly switches to the identicalsharedengine in Offline Showcase Mode.
Accomplishments that we're proud of
- Zero paid AI APIs—both the adaptive impostor and the ARES-7 Advisor Chatbot run deterministically at zero marginal cost.
- Full keyboard playability (
1–4,O/R/V/I,↑/↓,Space,Esc), WCAG AA contrast,prefers-reduced-motionsupport, and live audio captions. - 12 passing unit and integration tests across
@signal-delay/shared(7 tests) and@signal-delay/server(5 tests).
What we learned
- Designing security-awareness mechanics around physical constraints (like light-speed delay $t = d/c$) makes social-engineering concepts immediately intuitive without walls of text.
- Sharing a single pure-TypeScript game engine between an authoritative Socket.IO server and an offline client guarantees identical rules in both online and showcase environments.
What's next for Signal Delay
- Deploying the persistent Fastify + Socket.IO + SQLite backend to a dedicated container host for global live leaderboards.
- Expanding the transmission campaign with multi-shift Mars dust-storm arcs and community-shared challenge seeds.
