Appearance
City Courier
Arcade driving: traffic, five deliveries, damage, a time limit and restart.
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 devThe 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:
| Format | molen/scene@3 |
| Tick rate | 30 Hz |
| Entities | 183 |
| Prefabs | 5 |
| Scene scripts | courier |
| Commands | drive, brake, restart |
| Declares | camera, 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.pngSource
examples/city-courier. A walkthrough README ships alongside it and in every copy.
