diff --git a/src/assets/music/heart.mp3 b/src/assets/music/heart.mp3 new file mode 100644 index 0000000..9ec78cd Binary files /dev/null and b/src/assets/music/heart.mp3 differ diff --git a/src/assets/music/slash.mp3 b/src/assets/music/slash.mp3 new file mode 100644 index 0000000..9068a42 Binary files /dev/null and b/src/assets/music/slash.mp3 differ diff --git a/src/game/firstperson.html b/src/game/firstperson.html index 0994222..71081b1 100644 --- a/src/game/firstperson.html +++ b/src/game/firstperson.html @@ -13,6 +13,8 @@ + +
diff --git a/src/js/firstperson.js b/src/js/firstperson.js index f40c0ae..b036c15 100644 --- a/src/js/firstperson.js +++ b/src/js/firstperson.js @@ -92,11 +92,15 @@ function selectAnswer(e){ score += 10; shake(document.getElementById("boss")) dmg(); + const bgm = document.getElementById("sfx"); + bgm.play() } else { selectedBtn.classList.add("Incorrect"); wrongCount ++; shake(document.getElementById("hrt")) updateHearts(); + const bgm = document.getElementById("sfxhrt"); + bgm.play() if(wrongCount >= maxWrong){ setTimeout(()=>{