refactor: fin de la premiere refactorisation du projet
This commit is contained in:
@@ -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`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user