# Tiny Worlds: the prompts

From https://zerowing.in/worlds/

Paste the base spec plus ONE world into Claude Code in an empty folder.

## Base spec

```
Build a living low-poly diorama as ONE self-contained HTML file using three.js (r170 via an importmap from jsdelivr). Everything in the world must MOVE.

Engine:
- Floating island: a flat grass slab on a dirt band, with a jagged voxel underside (InstancedMesh columns that get deeper toward the middle and shorter at the rim). Add a few small floating mini-islands that bob nearby.
- Flat-shaded MeshStandardMaterials (cached by colour), PCF soft shadows from one sun, ACES tone mapping, a vertical sky-gradient background, and an UnrealBloom pass that only matters at night.
- Box-built people: legs and arms on pivots, a head with hair and eyes, random shirts, skin tones and hair. Give them a walk cycle that swings legs and arms, and turn them to face where they're going. Add a sitting pose.
- A Path class that follows a polyline by distance (rounded rectangles, circles, CatmullRom loops), with lateral offsets so people pass each other.
- All animation runs through an updaters list driven by simulation time, so a speed slider works.
- Day/night: a time-of-day function sets the sun angle and colour, the sky gradient, and the hemisphere light. At night, windows, lamps, headlights and signs glow (emissive, so bloom picks them up) and stars fade in.
- UI: a small frosted panel with a serif title, a time-of-day slider, a speed slider, Day cycle and Orbit toggles, camera preset buttons that tween, and a stats line. ?clean hides the panel and H toggles it. OrbitControls with damping and a slow auto-rotate. In portrait windows, pull the camera further back.

Quality bar: dense, tidy, toy-like dioramas full of small props. Natural motion with easing, and no static scenery that could be moving. No console errors.
```

## 1. Block Party: a floating city block

```
The world: a city block on a floating island. A road loop around a sidewalk ring, with a jogging path and trees on the outer edge.
- Street basketball court with a chain-link fence: 4 players dribble, pass in arcs and shoot. 70% of shots go in; misses bounce off the rim and the nearest player chases the rebound. Spectators on a bench cheer.
- Pool with an animated water shader (caustic ripples): two swimmers do freestyle laps, someone drifts on a donut float, and a diver walks the board, bounces, flips in with a splash of voxel droplets, then climbs back out. Add a lifeguard who turns their head, plus sunbathers under umbrellas.
- A 4-storey brick apartment block with a deli shopfront and a striped awning. Its windows light up at night. On the roof: a water tank, AC units with spinning fans, and a gardener.
- Plaza: a fountain with particle jets, a kid with a balloon running circles round it, a hot dog cart and vendor, people chatting in pairs with gestures, and someone reading on a bench.
- A ferris wheel whose cabins stay level, with chasing rainbow bulbs at night and a queue at the base.
- Cars and a bus loop the road (headlights at night), walkers go both ways on the sidewalk, two of them have dogs (wagging tails), and joggers run the outer path.
- Sky: circling gulls, drifting clouds, a hot-air balloon.
Default time 16:12.
```

## 2. Matchday: a floating stadium

```
The world: a football stadium on a round-ish floating island, surrounded by trees, a parking lot and a road.
- A match in progress: 10-12 players in two kits run with purpose, pass the ball in arcs, tackle and shoot. A goalkeeper dives, a referee follows play. On a goal the ball hits the net, players run together and celebrate, and the crowd erupts.
- Tiered stands on all sides, packed with seated spectators drawn with InstancedMesh (hundreds to thousands). They do a Mexican wave around the stadium every ~15 s and jump up on goals.
- Four floodlight towers that blaze at night, and a big scoreboard (CanvasTexture) with the live score and match clock.
- Outside: fans walk from the parking lot to the gates, cars arrive, park and leave, a food stall has a queue, flags flutter on the roofs, and a blimp with a lit banner circles overhead.
Default time 18:24 (golden hour, floodlights coming on).
```

## 3. Grand Prix: a floating racetrack

```
The world: a large irregular floating island with a winding race circuit (a closed CatmullRom curve) with red/white kerbs, a start/finish straight with a chequered line and a start-light gantry, a pit lane with garages, grandstands, and an infield lake.
- 8-10 race cars with distinct liveries and spinning wheels race laps. They slow into corners (speed from curvature), accelerate on straights, bank into turns and overtake (lateral offset changes when one is close behind).
- Pit stops: a car peels into the pit lane, stops at its garage, a pit crew rushes around it for ~3 s, then it rejoins.
- Start lights cycle red to green as the leader crosses the line. A lap counter tower shows the lap and the leader.
- Grandstand crowd (instanced) turns heads to follow the nearest car and cheers on overtakes. A marshal waves a flag.
- Infield: a lake with animated water and a small boat, a helicopter tracking the leader with a spinning rotor, and tents with a flickering campfire at night.
Default time 15:30.
```

## 4. Harbour Town: a floating seaside village

```
The world: a floating island that is half hilly coastal village and half a bay of animated sea water held inside the rim. The sea spills off one edge as a waterfall of falling voxel particles into the sky below.
- Boats bob and roll on the waves (sample the same wave function on the CPU as in the shader). A fishing trawler sails out and back, sailboats tack with swaying sails, a ferry shuttles between two piers while passengers walk off and on, and a rowboat rows with moving oars.
- A lighthouse on a rocky point with a rotating beam that sweeps at night.
- Pier: strollers, a fisherman who casts, gets a bite and reels in, kids running and jumping off the end with splashes, and gulls that land on posts and take off again.
- Village: colourful stacked houses on terraces (windows lit at night), a market square with stalls and shoppers, a cable car up the hill, flapping laundry lines, chimney smoke puffs, and a windmill on the summit.
- Beach: umbrellas, sunbathers, a volleyball pair, and a surfer who rides the swell and wipes out.
Default time 10:30.
```
