Driving Controls

Bruno’s native keyboard driving actions, extracted independently of the portfolio world. Arrow/WASD steering, boost, brake, action events and a disposable adapter.

Exact preview of Driving Controls
Type
Component
Category
Interaction
Source license
MIT
Collection
Open Source Experiences

View source in the repository

Usage

// Place this example in vendor/experiences/bruno-2019/src/example.js.
// Use that project's isolated dependencies and Vite setup (see its README).
// Rebuild the included native runtimes with: npm run build:experiences

import { DrivingControls } from '../parts/DrivingControls.js';

const controls = new DrivingControls();
function update(delta) {
  const { up, down, left, right, boost, brake } = controls.actions;
  // Apply these native actions to your own vehicle or camera.
}
// Call controls.destroy() when unmounting.

License and credits

Bruno Simon · Folio 2019 by Bruno Simon. Original upstream source

Read the original MIT license

Credits and asset notices

Third-party assets and dependencies

vendor/experiences/bruno-2019/ASSET_NOTICES.md

Keep the original source and media notices with your copy.

Explore more

  • Liquid FormExact preview of Liquid Form

    A centered silver ray-marched liquid form with authored studio reflections and pointer-responsive camera drift.

  • Boarding PassExact preview of Boarding Pass

    A live flight pass whose changed gate and times roll over like a departures board.

  • Aurora TextExact preview of Aurora Text

    Multi-colour aurora motion within a large type specimen.

Frontfield homepage