Skip to content

City Courier ​

Arcade driving: traffic, five deliveries, damage, a time limit and restart.

City Courier

A complete game with a real win/loss loop. Demonstrates mountable vehicles, a chase camera, deterministic ambient traffic on an inline street network, and a full restart path — plus a command-only victory regression that proves the game is winnable without a browser.

Play it ​

Play City Courier in your browser. Nothing to install.

Make it yours ​

The sample ships inside @bendyline/molen-tooling as a template, locked to the engine version you install. Copy it into a standalone npm project (no clone of the engine repository needed):

sh
npx @bendyline/molen-tooling new my-city-courier --template city-courier
cd my-city-courier
npm install
npm run dev

The copy keeps the sample's scene, scripts, commands, checks and headless tests, plus its replay fixture; npm test runs them.

What it teaches ​

  • Vehicles & driving
  • Ambient traffic
  • Follow cameras
  • Win/loss/restart loop
  • Victory regression
  • Sound from scene data

The scene at a glance ​

Read straight out of the sample's scene.json:

Formatmolen/scene@3
Tick rate30 Hz
Entities183
Prefabs5
Scene scriptscourier
Commandsdrive, brake, restart
Declarescamera, input, physics

Run it headlessly ​

Every sample is also a headless fixture, so no browser is needed. From your copy:

sh
npx molen validate scene.json
npx molen sim run scene.json --ticks 60 --hash
npx molen shot scene.json --ticks 60 --out city-courier.png

Source ​

examples/city-courier. A walkthrough README ships alongside it and in every copy.

37 guides · 36 schema formats · 41 API entry points · 10 samples. API, CLI and schema pages are generated from the shipped build.