webaverse / app

Web metaverse client
https://app.webaverse.com
MIT License
338 stars 212 forks source link

equip sound + sword grunt + sword sound #3674

Closed tcm390 closed 1 year ago

tcm390 commented 1 year ago
  1. Play the equip/drop sound in metaverse_components/wear.js instead of character-sfx.js (Should we just only play the equip sound for localPlayer?)
  2. Because some apps like sword do not have the file index.js to play the sword whoosh, can we create a metaverse components use for the app to handle the sound event?
  3. In animation-baker.js, baked the sword velocity to slash animation. And play the sword grunt and emit meleewhoosh event according to the velocity. (instead of using constant)
  4. And for the redo sword animation, we haven't had the new sword animation so I just change sword animation to animationCombo in this PR: https://github.com/webaverse/sword/pull/2

Sibling: https://github.com/webaverse/sword/pull/2

related: https://github.com/webaverse/app/issues/3659

Result:

https://user-images.githubusercontent.com/60634884/187808725-518c0de0-fa6d-43c2-aff2-49e407a16fe5.mp4