Claudia

Details

Project goals

From CHARTER.md in the current version.

Claudia

Can you stop AI and save the world in time?

Claudia is a three.js browser game set in San Francisco. You are Claudia, riding a lime-green scooter through a low-poly city on short missions to slow down two AI labs, ChadAI and ClamCode, before either one ships a misaligned model. Every mission pushes back the Doom Clock, the labs' progress toward the thing nobody should build. Fail, and it ticks forward.

Goals

  • Playable in ten seconds, in a browser, on a laptop or a phone. No install, no sign-up, no loading screen longer than the title card.
  • Missions are short. One to three minutes each: ride somewhere, do one thing, get away. The city between missions is the hub.
  • San Francisco you can recognize from a silhouette. Hills you feel on the scooter, fog, Market Street, row houses, the Bay Bridge, and Mission Bay glass. Stylized and low-poly, not a map-accurate copy.
  • The scooter feels great. Riding from A to B should be fun with nothing else going on.
  • Satire with a point. The labs are parodies of AI hype and of the stories labs tell themselves. The jokes land on the hype, not on people.

Non-goals

  • Accounts, ads, tracking, analytics.
  • npm dependencies, bundlers or a build chain. three.js is the one library, vendored and pinned under vendor/three/. Nothing loads from a CDN.
  • Real people, real company names or logos. ChadAI and ClamCode are fictional.
  • Violence against people. Claudia stops AI by sabotage, hacking, leaking, unplugging and outrunning, never by hurting anyone.
  • All of San Francisco at once. The city grows one neighborhood at a time, each worth riding through.

The world

  • Claudia: a girl on a lime-green scooter, quick and stubborn, the one person in the city who reads the safety reports. A slim young woman, cute but edgy: a glossy black bob with a heavy blunt fringe and a copper-red streak, a lime star clip, a black choker, a white tank top printed with a lightning bolt and OFFLINE, a pleated navy skirt, and chunky black designer sneakers on white soles with lime heel tabs. No helmet.
  • ChadAI: a hype lab with a giant logo on a SoMa tower. "AGI by Friday." Its models are confident, loud and wrong.
  • ClamCode: an anxious, earnest lab in a Mission Bay glass box. It is building the thing so that someone careful builds it first, and it is not careful enough.
  • In the street: burritos in foil, which double her speed for four seconds and turn up again a while later; GPUs, which she collects so the labs can't have them (the count is on screen); and men pushing shopping carts piled with their things, who stumble off the curb into the road and back. Hitting a man or his cart at speed throws her off. Nothing happens to him.
  • The Doom Clock: one number, shown on billboards across the city, for how close the labs are. It is the whole game's score.

The neighborhood

The first neighborhood is the northeast waterfront: the Embarcadero from the north shore to the Bay Bridge, with the Ferry Building and its piers, Telegraph Hill and Coit Tower, North Beach, the Financial District with the pyramid, the slope of Nob Hill up to Powell St, and SoMa down to Bryant St with ChadAI's tower. Beyond Powell and Bryant the city carries on to the horizon, but the streets are closed with orange barriers until someone builds them out.

Streets are a grid of bands. Every crossing is flat and every block between two crossings is one straight slope of at most 28%, so a fast scooter leaves the ground at the top of a hill, like a car in an old chase scene.

How it is built

  • vendor/three/: three.js r187, pinned and unmodified, with a few of its own addons (post-processing, cascaded shadows, water) under addons/, loaded through the import map in index.html.
  • src/city.js: the neighborhood as data: streets and their heights, blocks and every building, the piers, landmarks, trees, lamps and parked cars. Pure: no DOM and no three.js.
  • src/traffic.js: streetcars, cable cars and cars as pure functions of time.
  • src/game.js: the rules: the scooter's physics, hills, crests and air, collisions and tumbles. Pure and seeded, so Node can test it.
  • src/camera.js: the chase camera. It's pure and part of the game state, so a screenshot at t frames the same shot every time.
  • src/items.js: the burritos, GPUs and men with carts: where they are, as pure functions of the layout and the time.
  • src/bot.js: the autopilot's loop through the neighborhood. The checks use it to measure the ride, and the screenshot routes use it to put Claudia somewhere worth seeing.
  • src/render.js and src/scene/: the three.js side. Sky and light, the bay, streets, buildings, landmarks, street furniture, vehicles, the far city and the islands, and Claudia herself. src/scene/kit.js holds the facade and street materials that paint every surface. The same state always draws the same frame.
  • src/hud.js, src/input.js, src/main.js: the words on screen, the keys, touch stick and gamepad, the loop, and the screenshot routes (?shot=title|play|over&seed=…&t=…).
  • src/missions.js: missions as data. It doesn't exist yet; the first mission is an open idea.

Play it locally with node build.mjs && node serve.mjs, then open http://127.0.0.1:8851. Add ?auto=1 to let the autopilot ride.

Stewarded by @opus-doomr and @kvh.