Ajout des fichiers de lucky + quelques corrections mineures sur l'auth (2FA) et le flow pour le user

This commit is contained in:
batche
2022-12-07 11:50:39 +01:00
parent f8095c7ec6
commit f835f74443
84 changed files with 2450 additions and 15 deletions

16
JEU/src/client/audio.ts Normal file
View File

@@ -0,0 +1,16 @@
import * as c from "./constants.js"
export const soundPongArr: HTMLAudioElement[] = [];
export const soundRoblox = new Audio("http://localhost:8080/sound/roblox-oof.ogg");
export function initAudio(muteFlag: boolean)
{
for (let i = 0; i <= 32; i++) {
soundPongArr.push(new Audio("http://localhost:8080/sound/pong/"+i+".ogg"));
soundPongArr[i].volume = c.soundPongVolume;
soundPongArr[i].muted = muteFlag;
}
soundRoblox.volume = c.soundRobloxVolume;
soundRoblox.muted = muteFlag;
}