Skip to content
andrewmyPublic

About

High-speed 3D alpine cliff descent

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

APEX GOAT — Alpine Cliff Descent

High-speed 3D alpine cliff descent prototype built with TypeScript, Vite, and Three.js.

https://andrewmy.github.io/apex-goat/

APEX GOAT GoPro POV mid-backflip at 187 km/h during a ×4 combo and 286 km/h rockslide

Controls

Supports both Keyboard and Controller with automatic HUD glyph switching and dual-rumble haptic feedback.

Action Keyboard Controller (Xbox / PS)
Sprint / Brake W / S RT / LT (R2 / L2)
Carve / Steer A / D Left Stick / D-Pad
Leap / Wall-Kick Space A / ×
Slope-Pump / Dive / Grip Shift RB / B (R1 / ○)
Headbutt Ram F X / □
Bleat B D-Pad ↑ / R3
Toggle Camera C View / Share
Quick Screenshot Q / F2 L3 (Left Stick Click)
Instant Restart R Y / △
Last Checkpoint Backspace LB / L1
Pause / Back Esc / P Menu / Options (B / ○ closes menu)

Controller & Haptics Notes

  • Auto-detection: Plug in or connect a controller over USB or Bluetooth and press any button—HUD prompts, start tips, and pause controls switch automatically.
  • Rumble: Dual-rumble haptics fire on headbutt impacts, slope-pump landings, wall-kicks, wipeouts, and loose scree surfing in Chromium browsers (Chrome / Edge on macOS & Windows 11). On Windows 11, DualSense rumble is most reliable over USB-C; Xbox controllers rumble over both USB and Bluetooth.
  • Browser requirement: The Web Gamepad API requires a secure context (https:// such as the GitHub Pages link above, or http://localhost:5173/).
  • Quick Screenshot: Press Q, F2, or click L3 (Left Stick) mid-run to capture the 3D scene with live HUD overlays at full native resolution. Immediately downloads a timestamped PNG (apex-goat-YYYYMMDD-HHMMSS.png) and also copies the image to your clipboard on keyboard.

Development

Requires Node.js 22+ and pnpm.

pnpm install
pnpm dev

Play: http://localhost:5173/

Scripts

Command Description
pnpm dev Start local Vite dev server on port 5173
pnpm build Typecheck and build production bundle to dist/
pnpm preview Preview the production build locally
pnpm typecheck Run TypeScript type checking without emitting files
pnpm lint Run Oxlint (with type-aware rules) across the repo
pnpm lint:fix Run Oxlint with automatic fixes
pnpm format Format files with Oxfmt
pnpm format:check Check formatting with Oxfmt
pnpm check Run typecheck, lint, format check, tests, and build

About

High-speed 3D alpine cliff descent

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages