Coast Ride: A 3D Seabird Bike Ride from Dusk to Starry Night

A playable 3D game in one offline HTML file: a pelican in a helmet, sunglasses and a cloth-simulated scarf rides a bicycle along a coastal road and catches fish. Change lanes, jump for golden fish, spread its wings for a wheelie, and ride on as the sky turns from golden dusk to a starry, moonlit night beside a breaking surf. One ride file turns it into a puffin, a heron or your own bird.

Examples · 3

Coast Ride 3D bike ride game
Open in new tab

Runs in a sandboxed frame with no access to this page.

Run online

Run in a SandBase sandbox and view your results in Lab.

Open in Lab ↗

What you get

Bring edits to an example ride: the bird and its colours, the helmet, glasses and scarf, what it catches, the hours of the sky and the coast. The Skill returns a downloadable Skill (the three.js game, a ride config, a customize guide, headless verification) and three playable example rides.

How it works

  1. 01

    Copy and restyle a ride

    node scripts/new-project.mjs --out <dir> copies the project, with Node 22.4 or later. Copy rides/pelican-dusk/ to a new id and edit its ride.json; references/customize.md maps every field to what changes on screen and names the code to edit for deeper changes, such as the rider's body, the cameras, the jump height or the achievements.

  2. 02

    Build one file

    RIDE=<id> npm run build:single writes dist-single/index.html with three.js inlined and no fetch, storage or external URLs, so it runs in a sandboxed frame or opens from disk with a double-click. No key is needed and nothing calls a model.

  3. 03

    Verify every check

    npm run shoot writes shots/report.json and screenshots; every step in verify.json must reach its asserted state, and facts.colours echoes the ride's colours so an agent can confirm the restyle without seeing images. Each published ride passed 30 checks at 60 fps. Node tests also check the ride schema, the day cycle and the lane-change curve.

FAQ

How do you play Coast Ride?

Press Start riding, hold W to speed up and S to slow down, and tap A or D to move between the three lanes. Fish leap across the road: ride under one to catch it in the beak. Golden fish fly high and need a jump with Space, and rocks cost your combo unless you jump them. Hold T to spread the wings for a wheelie. Leave the keys alone for six seconds and the autopilot rides for you.

Can the rider be a different bird?

Yes. The rider is one parametric bird, and the three examples are a pelican, a puffin and a heron built from the same code. A ride.json sets the feather, back, wing-tip, beak, feet and eye colours, the beak and neck length, and whether it has a crest and a throat pouch. A body of another shape, such as a penguin, means editing the geometry in src/pelican.js; the IK and the scarf follow.

Does Coast Ride call a model or the network?

No. Every mesh, texture and sound is generated in code when the page loads, and the page makes no network requests. Building a new ride needs only Node and npm, and verifying it needs a local Chrome. No SandBase key or paid call is involved.

Does it work on phones?

Yes. Touch buttons change lanes, jump, hold the wheelie and change speed, and quality starts at medium and adapts to the measured frame rate. It was verified under touch emulation at 390×844, not on real devices, so check it on the phones you care about before sharing it.

Why is the scarf a cloth simulation?

Because it is the thing that shows motion best: it streams back as the bike speeds up, swings out on a lane change, lifts on a landing and settles when you coast. Two cloth strips with body colliders cost little enough to run on phones too.

Lab Skill · Games

Seagull Swoop

Build a 3D flight-and-delivery game with light fries, heavy fish, crosswinds and optional ring routes. The gull must bring lunch home; cargo weight changes which openings it can safely reach.

Lab Skill · Games

Wedding Cake Wobble

Build a 3D fragile-cargo delivery game around a wobbling wedding cake. Brake before turns, avoid crossing guests and steer around tables. Lost tiers change the score, while a partial delivery can still succeed.

Lab Skill · Games

Hermit Tide

Build a 3D route-and-timing game where a hermit crab changes shells to cross a tidal shore. Narrow gaps favour the cap, stronger shells resist waves, and dry stones provide shelter and checkpoints.

Lab Skill · Games

Clover Circuit: Estate Cut

Drive a coral ride-on mower through a fenced estate garden. Steering, braking and the moving blade cut actual grass tufts; Overview reveals the genuine trail. Edit three gardens and three scene palettes offline. Coverage counts trimmed tuft centers rather than continuous ground area.

Lab Skill · Games

Glide Gates: Lagoon Run

Flap a golden bird through emerald pipe pairs above a turquoise lagoon. Actual fixed-step gravity, swept circle contacts and full-gate scoring power both manual flight and clearly labeled practice. Edit three courses and three scene palettes offline.

Lab Skill · Games

3D Interactive Garden Islands

Walk a curved garden, harvest fruit, share gifts, catch butterflies, fish, grow flowers and craft furniture. Four lighting states and one offline HTML with bilingual keyboard and touch controls.