first commit
This commit is contained in:
1
modules/soundeffects/soundeffectsplayer.js
Normal file
1
modules/soundeffects/soundeffectsplayer.js
Normal file
@@ -0,0 +1 @@
|
||||
define(["exports","./../howlerjs/howler.core.js"],function(_exports,_howlerCore){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0;var sounds={};_exports.default={play:function(options){var path=options.path,sound=sounds[path];sound||(options=options.volume||.3,sound=new _howlerCore.default({src:[path],volume:options}),sounds[path]=sound),sound.play()}}});
|
||||
Reference in New Issue
Block a user