Back to Howler Js

3D Spatial Audio (Live Demo)

examples/3d/README.md

2.2.41.0 KB
Original Source

3D Spatial Audio (Live Demo)

Description

This example displays how to use howler.js and the Spatial Plugin to add immersive spatial audio into 3D (or other) environments.

  • Controls: Arrow Keys, WASD and Touch
  • Simulates 3D game using minimal ray casting code.
  • Full-screen and responsive for desktop/mobile.
  • Separate Audio class that controls the different sound effects and spatial sounds.
  • All game sounds implemented with a single sound sprite and Howl instance.

How-To

  1. Clone the git repo or download the source:
  2. Open index.html in your favorite browser.

Credits

Inspired by the great post on JavaScript ray casting on PlayfulJS.