l3mpire / lemverse

The first-ever coworking metaverse
https://app.lemverse.com
GNU Affero General Public License v3.0
149 stars 40 forks source link

Play punched sound with a random pitch #172

Closed t-moennich closed 1 year ago

t-moennich commented 1 year ago

Fixes #167

Updates the punch ability to play pitched with a random value between 0.7 and 1.5. This is only possible on an AudioBuffer, that's why I had to add a method to load the audio buffer from the URL.

See attached video (with sound ;) ) https://user-images.githubusercontent.com/6061136/196361057-fe72ac74-c0e8-41cf-9bc0-c7ed39d4b574.mp4

Donorhan commented 1 year ago

Thanks! It's awesome 👏