1. Project goal
Build an original 3D browser driving game in which the player drives a long city bus along a fixed route through narrow residential streets. The challenge is the length of the bus: on tight corners the rear wheels cut inside, so the player must swing wide without scraping walls, poles or parked cars. At each stop the bus has to pull in close to the curb so passengers can get off and on, and the timetable keeps running. In one sentence: get a long bus round tight corners and to every stop on time without a scratch.
2. Visual style
Clean, friendly low-poly suburb with flat colours and soft shadows: grey and brown pitched-roof houses, small apartment blocks, concrete walls, utility poles with overhead wires and yellow-black striped guards, white lane markings and sandy pavement. Bright daylight, gentle ambient occlusion. The bus is a simple, readable white city bus with a clear front and route sign. UI is flat and rounded, like a Japanese bus information board.
Reference: author video 00:00 chase camera on a narrow lane, 00:06 wide right turn with a near-miss bonus, 00:08 scrape penalty, 00:12 stop box with waiting passengers, 00:14 boarding and stop bonuses, 00:18 departure.
3. World and scene
A sequence of routes (for example a residential line, a shopping-street line and a hot-spring line), each unlocked by finishing the previous one. A route is a chain of streets that gets narrower as it goes, with numbered stops. Each stop has a green stop box at the curb and a few pedestrians who walk to the door. Obstacles: poles, walls, fences, parked cars, vending machines and the occasional oncoming car.
4. Asset list
Each item is a separate replaceable model in a named slot.
- bus_city: city bus with separate wheels (front steer, rear fixed), opening doors and a route sign; later variants for a minibus or articulated bus.
- house_set: several detached houses and small apartment blocks with interchangeable roofs.
- street_props: utility pole with guard, wire spans, concrete wall segments, fences, vending machine, bus stop sign and shelter.
- vehicles_parked: two or three parked cars and a delivery van.
- passenger_set: low-poly people with simple walk animation.
Keep procedural: road layout, markings, stop boxes, scoring and UI.
5. Gameplay and feedback
Controls for two thumbs: an on-screen steering wheel on one side that springs back when released, and a vertical throttle on the other (slide up to go faster, release to brake); a reverse button and a camera toggle between high chase view and driver's seat. Swap sides option. Use simple car physics with a long wheelbase so the rear axle tracks inside on turns. Feedback: near miss +60, scrape -50 with a crunch sound and a scratch counter, three accidents end the run. At a stop, score for position in the box, closeness to the curb and punctuality, then animate the doors and passengers. HUD: next stop name and distance, seconds against the timetable, scratches, accidents, score, speed, passenger count.
6. Technical implementation
Use three.js with a single WebGL canvas. Build routes from tile or spline segments with collision boxes for obstacles; check the bus outline against them each frame for scrape and near-miss events. Implement the bus as a bicycle model with the rear axle as the pivot so the cut-in behaviour is natural. Keep the camera smooth and rotating with the bus. Save unlocked routes and best scores in localStorage. Support Japanese, English, Korean and Simplified Chinese strings.
7. Completion criteria
Must work: at least one full route with several stops, wheel and throttle touch controls plus keyboard fallback, reverse, two cameras, scrape and near-miss detection, stop scoring with boarding animation, timetable, three-accident fail state, route unlock, result screen and restart. Match the reference views listed above. Deliver editable source and a list of all replaceable model slots.