refactor: fin de la premiere refactorisation du projet

This commit is contained in:
2026-08-02 22:27:00 +02:00
parent c709064062
commit 45ad31d0ae
14 changed files with 299 additions and 142 deletions

View File

@@ -1 +1,18 @@
/*
ui.js
toute les manipulation du DOM (ce qu'il y a en dehors du canvas)
*/
export function showGameOver(message) {
document.getElementById("gameOverMessage").textContent = message;
document.getElementById("gameOverScreen").style.display = "block";
}
export function showVictory() {
document.getElementById("victoryScreen").style.display = "block";
}
export function updateTimerDisplay(timeLeft) {
document.getElementById("timerDisplay").textContent = `Temps restant : ${timeLeft}s`;
}