Add audio
This commit is contained in:
parent
0101ef8d55
commit
62b8c74f57
26 changed files with 225 additions and 18 deletions
5
js/game/audio.mjs
Normal file
5
js/game/audio.mjs
Normal file
|
@ -0,0 +1,5 @@
|
|||
import {audio} from '../assets.mjs';
|
||||
|
||||
export function play(name) {
|
||||
audio[name].cloneNode(true).play();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue