add: ajout des modifications manquantes pour la fonction d'instruction vocale

This commit is contained in:
2026-08-03 22:54:51 +02:00
parent d36c025cf2
commit ab4372c57c
2 changed files with 9 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ import { roleState } from "./role.js";
import { render, drawBlind } from "./canvas.js";
import { setupMovement } from "./movement.js";
import { showGameOver, showVictory, updateTimerDisplay } from "./ui.js";
import { speakInstruction} from "guideVoice.js";
setupMovement();
@@ -47,3 +48,7 @@ socket.on("victory", () => {
socket.on("timer", (timeLeft) => {
updateTimerDisplay(timeLeft);
});
socket.on("instruction", (data) => {
speakInstruction(data.texte);
})