1. Project goal
Build an original 3D browser driving game in which the player steers an absurdly long truck along an endless, barrier-free road on top of a narrow cliff ridge. The player's one-sentence job: hold the accelerator, turn a big on-screen steering wheel, and keep every wheel of a 30-metre-plus rig on the asphalt through ever tighter bends for as many metres as possible. A run lasts from a few seconds to a couple of minutes and ends with the truck sliding off the edge and tumbling into the fog, followed by a distance score, a best-record line and an instant retry.
2. Visual style
High third-person chase camera behind and well above the rear of the truck (around 30 m up and 24 m back, looking ahead and down at roughly 40–55 degrees, about 62 degrees vertical field of view). The camera lags slightly behind the truck's heading and aims a little toward where the road goes next, so the player can see the upcoming curve. Portrait phone framing first: the truck runs from the lower edge of the screen to its middle.
Palette is calm and airy: pale blue-grey sky, a dense sea of white-blue fog filling every drop, soft grey mountain silhouettes on the horizon layered lighter with distance. The road is grey asphalt with fine noise and thin white edge lines and no centre line. The cliff walls under the road are steep, rough rock faces textured in mossy olive green that later shifts to sandy beige stripes, fading into the fog below.
Strong exponential distance fog plus a height fog below road level so the ridge looks bottomless. One sun from the upper right casts a crisp shadow of the truck onto the road. The truck is a low-poly white box trailer with a red cab roof, small black mirrors and red tail lights; flat matte materials.
UI is minimal and touch-first: a white distance counter in metres at the top centre, a large three-spoke steering wheel bottom-left with a red rim marker showing its rotation, and two ribbed pedals bottom-right (a shorter brake and a taller accelerator that visibly depresses while held).
3. World and scene
One continuous road generated ahead of the truck from a fixed seed so every run is the same course. It begins with a short straight, then chains left and right arcs. Early curves are gentle (around 80–100 m radius, 50–100 degree turns, short straights between them); after roughly 600 m the curves tighten (around 55–65 m radius, 80–140 degree turns, no straights). The road is about 6 m wide and widens only as much as needed on tight bends, with the spare margin shrinking the further you go, but it is always technically passable.
The road rises and falls in long gentle waves. Its heading never swings more than about 85 degrees from the start direction, so it never crosses itself. Both sides drop straight down into fog 160 m below; there are no rails, verges or run-off areas. Build road and cliff in 100 m chunks ahead of the truck and discard them behind it.
4. Asset list
Replaceable individual models, each with its own description:
- truck_tractor: the cab with red roof, mirrors and front wheels that steer; top replacement priority.
- truck_trailer: one very long box body (wheelbase around 31 m) with rear wheels and tail lights; second priority.
- wheel: one tyre-and-rim model instanced on every axle.
- cliff_rock_kit: two or three rock-face modules (mossy green, sandy striped) for the ridge walls, used as texture or displacement references.
- distant_mountain_layers: flat silhouette cards for the horizon.
- result_badge: an optional small 3D trophy or ribbon for a new record.
Keep procedural, not as individual models: the road ribbon and its edge lines, the cliff walls generated along the road path, fog and height fog, sky gradient, physics, UI, and collision proxies.
5. Gameplay and feedback
Input: drag the steering wheel left or right (it turns up to about 270 degrees each way and springs back to centre when released); press and hold the accelerator; press the brake to slow down (brake wins if both are held). On desktop, arrow keys turn the wheel and dedicated keys work the pedals. Dragging the upper part of the screen can orbit the camera a little.
Driving model: the truck accelerates at about 3 m/s² toward a top speed of about 16 m/s, coasts down slowly when the pedal is released, brakes at about 7 m/s², and slows or speeds up on slopes. Front wheels steer with a slight delay; the long wheelbase means the rear wheels cut inside every corner, so the player must swing wide early. The body leans outward in corners on a soft suspension.
Failure is physical, not a timer: once wheels leave the asphalt the truck tips, scrapes and slides on the rock; if its centre of mass drops a few metres below the road edge it falls, tumbles down the cliff face into the fog and the camera stays at road level watching it go. If it gets stuck off the road without moving for a few seconds, the run also ends. If all four wheels get back on the road quickly, normal driving resumes.
Score is distance in metres, ticking up live. The result card shows the distance, flags a new best ("New record!") stored locally, and offers Share (a portrait image cropped from the final frame) and Retry. A How to play button explains the wheel and pedals.
6. Technical implementation
three.js with a WebGL renderer, PerspectiveCamera, HemisphereLight plus a shadow-casting DirectionalLight, FogExp2 and a custom shader for height fog. Generate road and cliff geometry as BufferGeometry ribbons along a sampled centreline. Use a fixed-step vehicle simulation (around 120 Hz for driving, finer for the fall) with bicycle-model steering for the tractor and trailer, simple spring contacts for the tumble, and local storage for the best distance.
Model slots: truck_tractor, truck_trailer and wheel load as separate GLBs with Y-up, metre scale and origins at the axle centres so physics and visuals line up; the trailer exposes named axle nodes. Keep visual meshes separate from the simple box and wheel-point collision proxies.
Interface language: English and Japanese at minimum, with icons doing most of the explaining. Portrait phone first, scaling cleanly up to desktop. Keep chunked geometry and shadows within real frame-time budgets on a mid-range phone.
7. Completion criteria
A player must be able to: open the page, hold the accelerator and see the distance count up, steer through gentle early curves, reach the tighter section after about 600 m, feel the trailer cut inside a bend, drop a wheel off the edge and recover, fully leave the road and watch the truck tip and tumble into the fog, see the result card with distance and a new-record flag, share an image, and retry from the start of the same course.
Visual checks: the road ridge reads as a narrow wall rising out of fog with no guardrails; the truck is unmistakably longer than the road is wide; the steering-wheel marker and pressed pedal match the input; distant ridges and mountains fade into haze.
Deliver a runnable static preview plus editable source and a start command. Verify the full loop on touch controls and keyboard.