Δ9Φ963 · design canon

Haven Rally v1.1

Time-trial racer. One craft, one closed circuit, a ghost of your best run. No account. Local ledger. This page is the spec the live client follows.

Play Arcade Ledger

1. Loop

Countdown 3–2–1–GO. Circuits: three laps. Pass sector gates, then the start line. Endless run is one start-to-finish highway (~16 miles: long straights, esses, a hairpin, a tunnel, FINISH gantry). Holding a slide charges boost. Beat the ghost. Post the card to this browser.

2. Controls

InputAction
W / ↑Throttle
Space / S / ↓Brake
A / ←Steer left (chase-cam). Options can invert.
D / →Steer right
Left ShiftE-brake / drift (kills grip, extra yaw, sparks)
Right ShiftBoost (meter)
RRestart heat / return to staging on drag
FDrag: snap both lanes to the line and run the Christmas tree
CCycle camera: Chase, Close, Hood, Bumper, Cockpit, TV
EscClose sheet, then menu

Dock Options (and the title card) open the configuration sheet. Race clock freezes while any overlay is open.

3. Physics (math first)

World yards; engine SI. Every craft is craftNorm’d so new cars only need stats. Apex Mk I is the baseline.

Engine. Torque curve (N·m) peaks at tqRpm from torque lb-ft. Fuel cut at redline. Wheel force T × gear × final × η / r. Top speed is aero: v³ = P / (½ ρ Cd A).

Gears. RPM locked to road speed × ratio except during a 0.12 s shift (clutch open). Auto upshift ~93% redline, downshift when RPM would sit under the torque peak.

Drive. rwd / fwd / awd sets which axle gets torque. Traction μ N_driven with weight shift. If drive force exceeds that, wheelSlip rises: RWD yaws (spin), FWD pushes wide, AWD holds longer. Future HP upgrades without extra μ will spin.

Brake. brakeMu × mass × g × 0.72. E-brake is extra rear μ and a slide. Lateral: vh chases heading at a rate from μ. On-track slip charges boost; Right Shift spends it.

Nearest-segment project onto the densified loop gives along-track s and signed lateral. |lat| > width is off-track. Every course is three lanes: half-width 1.5 × 4.4 yd, painted dividers at ±½ lane. Sectors fire when s crosses their fraction.

4. Circuits

IdFeel
pine-coilParkland dusk, medium width, flowing esses
coral-coastWide coastal, long straights, wind-tinted sky
singularity-ringNight, tight, high contrast
ridge-*Endless run. Seeded point-to-point, ~28,000 yd (~16 mi), 3 checkpoints, one run.
drag-eighth1/8 mile — 660 ft (220 yd). AI in lane 2.
drag-10001000 ft (NHRA Top Fuel trap length).
drag-quarter1/4 mile — 1320 ft (440 yd).

Drag is a linear strip, not a closed loop. Sportsman tree: pre-stage, stage, three ambers at 0.5 s, then green. Leave before green is a red-light foul. F restages both cars on the line and starts the tree. AI launches on its reaction time (rare red-light).

5. Crafts

One live chassis: Apex Mk I. Same powertrain for every future bay: set HP, torque, mass, drive, μ, gears — performance follows. Bay 02/03 locked. Old Mira/Reed/Kai saves map to Apex.

StatApex Mk I
LayoutRWD · 6-speed · 1380 kg
Power / torque470 hp @ 7200 · 420 lb-ft @ 4200 · redline 7800
Gears × final3.91 2.48 1.78 1.36 1.10 0.89 × 3.73
Aero / tiresCd 0.52 · A 2.1 m² · μ 1.32 · brake μ 1.58
Upgrades (later)upgHp / upgTq add to the engine; extra power without μ = wheelspin

6. Ghost + ledger

Each heat records {x,z,h} samples. Best finish time per circuit|craft keeps the ghost. Ledger key lygo-haven-rally-v1 in localStorage. RESOURCE on the public page; this browser is the hall. No fake global board.

7. Studio surface

Title screen matches Lattice Golf: full-bleed Apex still, right panel, operator name, garage chip, mode cards, radio, PayPal.me/ExcavationPro + Patreon. Garage is a live 3D studio (drag to orbit). 2.5D Three.js follow-cam; 2D top-down fallback if WebGL fails.

8. Options

Persistent sheet. Schema is the OPTIONS list in game.js. Each row is toggle, range, or soon. Enhancements add a row; they do not rewrite the menu. Values live under save.options in ledger key lygo-haven-rally-v1. Load merges defaults so old saves pick up new keys.

KeyGroupNow
ghostRaceShow best-heat ghost
countdownRace3–2–1 lights; off goes green immediately
invertSteerControlsSwap A/D and arrows
camViewCameraChase, Close, Hood, Bumper, Cockpit, TV. C cycles
camDist / camHeightCameraChase / TV distance and height multipliers (2.5D)
showPilot / showHintHUDPilot plate and on-track hint
metricHUDSpeed: mph (off) or km/h (on)
reduceFxGraphicsHides drift sparks and underglow
assist / abs / weathersoon placeholders

9. Out of scope v1

No multiplayer, no pay-to-win, no Palantir, no invented network scores, no Marines unless asked.