Compare commits

..

7 Commits

Author SHA1 Message Date
chocomett
c13cd2dc88 feat: add sounds after game end 2025-12-15 22:22:03 +07:00
chocomett
020022c910 feat: add icon all file 2025-12-15 21:16:34 +07:00
chocomett
2bd0410139 feat: change name file 2025-12-15 21:16:34 +07:00
chocomett
c8ce8197ce fix: trying change border 2025-12-15 21:16:34 +07:00
MRMARCABLE
f60b2c55e3 feat:mini-cave-icon-newmodif 2025-12-15 21:16:34 +07:00
MRMARCABLE
9acd5dc30f feat:mini-cave-icon 2025-12-15 21:16:34 +07:00
ac3a0d5f7b style: score notif 2025-12-15 20:23:39 +07:00
4 changed files with 9 additions and 7 deletions

View File

@ -1,4 +1,5 @@
@import url('https://fonts.googleapis.com/css2?family=Jersey+15&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');
*{
font-family: "Jersey 15", sans-serif;
margin: 0;

View File

@ -16,6 +16,7 @@
<audio id="bgm" src="/assets/music/game.mp3" loop autoplay></audio>
<audio id="sfx" src="/assets/music/slash.mp3"></audio>
<audio id="sfxhrt" src="/assets/music/hurt.mp3"></audio>
<audio id="win" src="/assets/music/Super Mario Bros. Music - Level Complete.mp3"></audio>
<div class="container-first">
<div class="content">
<div class="boss">

View File

@ -107,9 +107,7 @@ function selectAnswer(e){
bgm.play()
if(wrongCount >= maxWrong){
setTimeout(()=>{
showScore();
}, 500);
return;
}
}
@ -127,13 +125,15 @@ function showScore(){
document.getElementById("h1").remove();
document.getElementById("h2").remove();
document.getElementById("h3").remove();
setTimeout(()=> {
const bgm = document.getElementById("sfxhrt");
const bgm = document.getElementById("win");
bgm.play()
setTimeout(()=> {
const alerts = document.getElementById("scoreAlert")
alerts.textContent = `you scored ${score} out of 200 !`;
}, 600);
}, 200);
setTimeout(()=> {
postScore(score);
}, 3200);
}
function handleNextBtn(){