Bestenliste und Scores gespeichert und beim Ende eines Spiel Rang anzeige

This commit is contained in:
2025-04-28 20:56:06 +02:00
parent 76392172b5
commit 80ae256638
12 changed files with 155 additions and 32 deletions

View File

@@ -107,6 +107,10 @@ class UIManager{
const score = document.createElement("h2");
score.innerText = data.score;
scoreDiv.appendChild(score);
const rang = document.createElement("h2");
rang.innerText = `Bestenliste Platz: ${data.rang}`;
rang.style.color = "rgb(255, 223, 0)";
scoreDiv.appendChild(rang);
endDiv.appendChild(scoreDiv);
const dashButton = document.createElement("button");

View File

@@ -86,7 +86,7 @@ img{
flex-direction: column;
align-items: center;
justify-content: space-evenly;
height: 150px;
height: 200px;
}
#scoreEndDiv h3{