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 random punch sounds #167

Closed Raamyy closed 1 year ago

Raamyy commented 1 year ago

We can add more punch sounds and When X is pressed, a random sound is picked and played.

This is inspired by the hidden HADOUKEN sound in the assets 😆

Raamyy commented 1 year ago

@ramnes Can you advice where to get another punch sounds?

I read that you use Itch.io assets, Am I free to pick from them?

ramnes commented 1 year ago

No idea where the current punch sounds come from, maybe @Donorhan knows?

Donorhan commented 1 year ago

I didn't develop the punch so I don't have the origin of the sound but I think it comes from freesound.org. This is a good website to get royalty free sounds 🙂.

A technique very often used in games is to keep the same sound but play it with different audio pitch in a random way, an article about this exists here, I did not look if it is possible to play it natively in Javascript.