# Fare Shift: A Taxi Shift on Real Manhattan Streets

> Drive an eight-minute taxi shift through Manhattan, in one offline HTML file: passengers hail at the kerb, a GPS routes you over the real street grid, the meter pays by distance, arriving on time and without bumps earns the tip, and a summary card lists every fare. Real street names and landmarks, 200 cars and 340 people in traffic, four times of day, rendered with WebGPU.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Game creation](https://www.sandbase.ai/skills/games)
- Version: 0.1.1
- Runs online: yes
- Page: https://www.sandbase.ai/skills/games/fare-shift

## What you get

Bring the city, the cab and the fare rules, and optionally the look, HUD and shift length. The Skill returns a downloadable Skill (the driving-game project, a customize guide, headless verification) and one playable example shift.

## Install

Download the Skill package from https://www.sandbase.ai/skills/games/fare-shift (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/fare-shift make a driving game in <your city> where the player <your job>
```

## How it works

1. **Set up the cab project** Fare Shift starts with node scripts/new-project.mjs --out my-cab and npm ci, which pulls pinned Vite and playwright-core; three.js r187dev stays vendored in vendor/three/. A prompt such as "Use fare-shift to make a driving game in Manhattan where the player runs night airport fares" sets the job. references/customize.md covers fares and timing, destinations, time of day, beacons, HUD, cab, signs and traffic.
2. **Drive an eight-minute shift** Press Enter and a green beacon marks a hail at the kerb. Stop beside it and the passenger names a destination and a time limit, routed by A* over 2740 real road nodes to one of 13 named destinations. W and S drive, A and D steer, M opens the full map and V switches to the cockpit. Bumps during a ride cost tip and late arrival costs fare.
3. **Build and verify on a GPU** npm run build:single writes dist-single/index.html, about 2.8 MiB, for Chrome or Edge 113+ or Safari 26+ with WebGPU. npm run shoot needs local Chrome with a real GPU, since software rendering takes minutes per frame. It plays a start, a pickup, a bump, the map, a drop-off, the cockpit camera, night and the end card. Check shots/report.json lists every fare.

## FAQ

### What is Fare Shift?

Fare Shift is a taxi game on real Manhattan streets at golden hour. You drive a teal-and-cream cab among 200 cars and 340 people, pick up hails at green beacons, follow the GPS and get paid at yellow beacons. When the 480-second shift ends, a summary card lists every fare. Four times of day and procedural city sound are included.

### Does Fare Shift call a model or need a key?

No. Fare Shift calls no model and needs no API key; an agent edits the code locally, so a shift is never billed. Only npm ci reaches the network to fetch packages.

### Which browsers can run Fare Shift?

Fare Shift needs WebGPU: Chrome or Edge 113 or newer, or Safari 26 or newer. Without WebGPU the page shows a message instead of loading. The first load compiles about 600 shader batches. Phones without WebGPU and WebGL-only browsers are out of scope, and touch play has only been checked in emulation.

### Can Fare Shift use a city other than Manhattan?

No. Fare Shift generates its street grid, buildings and boroughs from Manhattan data, and config cannot swap them. You can change fares, destinations, time of day, colour grade, beacons, the cab, signs and the HUD. Street and landmark names stay real, while shop signs and billboards carry invented names instead of real brands.

### How does the Fare Shift GPS handle missed turns?

Fare Shift re-plans the route from the cab every second and a half, so a missed turn gets a new route rather than a dead end. The fare is metered on the planned route, not the distance driven, so detours cost time but not money. A destination in a park or on the water snaps to the nearest road node.

### Why does the Fare Shift check park the cab automatically?

Fare Shift verification uses parkAtTarget to keep checks deterministic, and every shift is seeded so the same seed gives the same hails and destinations. In real play you drive yourself and stop within a few metres of the beacon.

## Examples

- Fare Shift taxi game in Manhattan (scene)
- First Shift (video)
