From 2d0c5588edcbb164d19e7c2b78ab79b9de2eae37 Mon Sep 17 00:00:00 2001 From: tfrere Date: Thu, 20 Aug 2026 16:46:11 +0200 Subject: [PATCH] feat: right-stick camera orbit with inertia, subtle Tron glow on grid - Gamepad right stick orbits the camera around the duck through a smoothed angular velocity (exponential ramp in, ~0.3 s coast out), so motion eases instead of stopping dead. Vertical is flight-style inverted. Any deflection detaches the chase cam; R3 toggles it back, mirroring the C key. New RS/R3 HUD hints, README gamepad section updated. - Grid lines (floor and arena walls) get a thicker antialiased core and a faint wide halo for a restrained Tron look, plus slightly brighter line color and opacity. Co-authored-by: Cursor --- README.md | 2 ++ index.html | 4 ++- rl.js | 96 ++++++++++++++++++++++++++++++++++++++++++++++-------- 3 files changed, 88 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 02ab331..2384380 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,8 @@ area so neither the ball nor the duck can wander off. Plug in a controller and the same mapping as the real robot runtime applies: - Left stick: forward / back + turn +- Right stick: orbit the camera (detaches the chase cam) +- R3 (right stick click): toggle the chase cam back on - X: roll - Y: pop / respawn the ball - RB / LB: right / left kick diff --git a/index.html b/index.html index 8f717bf..00d4639 100644 --- a/index.html +++ b/index.html @@ -552,6 +552,8 @@ X roll   Y ball   RBLB kick   + RS camera   + R3 chase   ⇓ sit   ⇑ run   RT quack @@ -671,7 +673,7 @@ appended: a plain src attribute can 401 when the browser blocks the *.static.hf.space auth cookie inside the hub iframe. -->