NEON COAST
Make a 3D arcade time-trial racing game called "NEON COAST" using three.js. Retro 80s synthwave style: low-poly, flat-shaded, with a glowing magenta and orange sunset.
LOOK
- Low-poly flat-shaded art and no textures. The colours do all the work: deep purple shadows, hot pink and magenta mid-tones, orange and red highlights, a dark indigo sky with faint stars at the top that fades into a big pink-orange sunset glow at the horizon.
- Thick purple distance fog so the scenery fades into the sunset. Strong bloom on anything that glows.
- The road is dark asphalt with glowing neon edge lines (orange-pink gradient) that streak with the car's speed. A pink-and-purple checkerboard start/finish line.
- Roadside scenery: low-poly palm trees with dark red-brown fronds, flat-roofed beach houses and diners with glowing red windows, a striped tall hotel tower, rocky cliffs, the sea with sailboats on one side, hot-air balloons far away, and street lamps.
- A big curved banner arch over the start line with the game's own neon logo: "NEON COAST" in bold condensed letters with a glowing pink cursive word "Drive" written across them.
CAR AND CAMERA
- A low-poly 80s wedge sports car, dark purple, with a rear spoiler, two big glowing red-orange tail lights, a blank licence plate that reads "NEON 85", and a soft shadow under the car.
- Chase camera low behind the car, slightly above it, looking down the road. It falls back a little and the FOV widens as speed goes up, with a slight shake at top speed.
- Controls: W / Up arrow to accelerate, S / Down to brake and reverse, A/D or Left/Right to steer, Space for handbrake drift, R to reset to the road, M to mute. On touch screens: on-screen pedals and steer buttons.
- Arcade handling: quick acceleration to a top speed of about 180 MPH, grippy steering that loosens into slides when drifting, sparks and a pink tire-smoke trail while drifting. The car slows down and bounces off the guard rails, never stops dead.
TRACK AND GAMEPLAY
- One closed loop along a sunset coast road about 2 minutes long: a seaside straight, a sweeping cliff curve, a short tunnel lit with neon strips, a palm-lined boulevard through town, and back to the start arch.
- 3 laps time trial. Checkpoint gates (thin glowing arches) along the track. Missing one means the lap doesn't count.
- Boost pads on the road (glowing chevrons) give a short speed burst with a zoom effect.
- Ghost car: save the best run's path to localStorage and replay it as a translucent pink ghost on the next attempt.
HUD (retro digital font, white with a slight glow)
- Top left: a checkered-flag icon and "TIME 00:00:000" (minutes:seconds:milliseconds), with the current lap and best lap underneath.
- Top right: a speaker icon (mute toggle) and an "EXIT" button that goes back to the title screen.
- Bottom right: a curved, segmented speedometer bar that fills up with speed, and below it the big speed number and "MPH".
- A 3-2-1-GO countdown at the start. Lap splits show green if faster than your best, red if slower.
SCREENS
- Title screen: the car parked under the arch with the camera slowly circling it, the logo, "PRESS START" blinking, and the best time.
- Results screen: total time, each lap time, best lap, a "NEW RECORD!" flash, and buttons for Retry and Title.
AUDIO (Web Audio, made in code)
- A looping synthwave soundtrack: driving bassline, gated snare, arpeggiated synth lead.
- An engine sound whose pitch follows speed and gear changes, tire screech when drifting, a whoosh for boost pads, a chime for checkpoints, beeps for the countdown, and a bump sound when hitting rails.
Keep it running smoothly at 60fps: merge static scenery, reuse geometry for palms and houses, and use a single directional sunset light plus ambient light.