Add audio

This commit is contained in:
asraelite 2018-03-06 20:07:13 +00:00
parent 0101ef8d55
commit 62b8c74f57
26 changed files with 225 additions and 18 deletions

5
js/game/audio.mjs Normal file
View file

@ -0,0 +1,5 @@
import {audio} from '../assets.mjs';
export function play(name) {
audio[name].cloneNode(true).play();
}