Compare commits

..

6 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
4 changed files with 15 additions and 30 deletions

View File

@ -131,7 +131,6 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
border: 10px solid white; border: 10px solid white;
border-radius: 10px;
} }
.container-first .content .quiz h2 { .container-first .content .quiz h2 {
@ -142,23 +141,16 @@
} }
.container-first #scoreAlert { .container-first #scoreAlert {
text-align: center; margin-bottom: 30px;
padding: 10px; padding: 10px;
color: #ffdf12; color: #ffdf12;
font-size: 40px; font-size: 40px;
bottom: 22px; bottom: 40px;
background-color: #101010f5;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
position: absolute; position: absolute;
} }
.container-first #scoreAlert.border {
width: 550px;
border: 6px solid white;
border-radius: 10px;
}
.container-first .content .quiz #btn-answer { .container-first .content .quiz #btn-answer {
color: #ffdf12; color: #ffdf12;
display: flex; display: flex;
@ -245,20 +237,3 @@
transform: translate(-50%, -150%) scale(1.5) transform: translate(-50%, -150%) scale(1.5)
} }
} }
.dmg{
width: 800px;
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%,-50%);
z-index: 9999;
pointer-events: none;
display: none;
image-rendering: pixelated;
background-repeat: no-repeat;
background-size: cover;
}

View File

@ -132,11 +132,15 @@ input:-webkit-autofill {
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
height: 100dvh; height: 100dvh;
/* Hapus properti background dari sini dan pindahkan ke ::before */
/* Tambahkan posisi relatif agar pseudo-element bisa diposisikan absolut di dalamnya */
position: relative; position: relative;
/* Pastikan konten di dalam container ada di atas latar */
z-index: 1; z-index: 1;
} }
/* Pseudo-element untuk menampung gambar latar transparan */
.container-board::before { .container-board::before {
content: ""; content: "";
position: absolute; position: absolute;
@ -144,12 +148,19 @@ input:-webkit-autofill {
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
/* Pindahkan properti background Anda ke sini */
background-image: url(/assets/Design/CampFire8WESFIX!-export.png); background-image: url(/assets/Design/CampFire8WESFIX!-export.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: cover; background-size: cover;
background-position: center; background-position: center;
image-rendering: pixelated; image-rendering: pixelated;
/* >>> INI KUNCINYA: Atur opasitasnya di sini <<< */
opacity: 1; opacity: 1;
/* Contoh nilai 40% transparan */
/* Pindahkan latar ini ke lapisan paling bawah */
z-index: -1; z-index: -1;
} }

View File

@ -21,6 +21,7 @@
<div class="content"> <div class="content">
<div class="boss"> <div class="boss">
<img id="boss" src="/assets/Design/PYTHON-BOSSFIGHTMODEFINALt.gif" alt=""> <img id="boss" src="/assets/Design/PYTHON-BOSSFIGHTMODEFINALt.gif" alt="">
<img id="dmg" class="dmg" src="/assets/Design/damageeffectNEWSLASH.gif"/>
</div> </div>
<div class="hearts" id="hrt"> <div class="hearts" id="hrt">
<img id="h1" src="/assets/Design/Heartfull.png"> <img id="h1" src="/assets/Design/Heartfull.png">
@ -37,7 +38,6 @@
</div> </div>
</div> </div>
<h2 id="scoreAlert"></h2> <h2 id="scoreAlert"></h2>
<img id="dmg" class="dmg" src="/assets/Design/damageeffectNEWSLASH.gif"/>
</div> </div>
</div> </div>
<script type="module" src="/js/firstperson.js"></script> <script type="module" src="/js/firstperson.js"></script>

View File

@ -129,7 +129,6 @@ function showScore(){
bgm.play() bgm.play()
setTimeout(()=> { setTimeout(()=> {
const alerts = document.getElementById("scoreAlert") const alerts = document.getElementById("scoreAlert")
alerts.classList.add("border")
alerts.textContent = `you scored ${score} out of 200 !`; alerts.textContent = `you scored ${score} out of 200 !`;
}, 200); }, 200);
setTimeout(()=> { setTimeout(()=> {