diff --git a/README.md b/README.md index a780040..d4c4c0b 100644 --- a/README.md +++ b/README.md @@ -6,5 +6,6 @@ To run TheChaseBuzzer yourself, complete the following steps: 2. Install node.js from https://nodejs.org/en/ 3. Download all project files for TheChaseBuzzer from this github repository 4. Open the main folder of TheChaseBuzzer in cmd (this is the folder containing app.js) -5. Enter the command: `node app.js` -6. You should then be able to connect to the server in a browser by entering your public ip, followed by `:8080` \ No newline at end of file +5. Install the node modules using the command: `npm install` +6. Run the app with the command: `node app.js` +7. You should then be able to connect to the server in a browser by entering your public ip, followed by `:8080` \ No newline at end of file diff --git a/app.js b/app.js index 5dda8c2..1d31410 100644 --- a/app.js +++ b/app.js @@ -122,9 +122,15 @@ io.on("connection", (socket) => { io.emit("userInfoToClient", userInfo); }); + //used by the host when they refresh the page. + socket.on("refreshUserInfo", () => { + io.emit("userInfoToClient", userInfo); + }); + socket.on("unregisterUsers", () => { userInfo = new Object(); io.emit("userInfoToClient", userInfo); + io.emit("reconnectUsers"); }); socket.on("objectionToServer", (userName) => { diff --git a/audio/AC7Missile.wav b/audio/AC7Missile.wav new file mode 100644 index 0000000..01414e4 Binary files /dev/null and b/audio/AC7Missile.wav differ diff --git a/audio/KHRikuSorry.wav b/audio/KHRikuSorry.wav new file mode 100644 index 0000000..ce649ab Binary files /dev/null and b/audio/KHRikuSorry.wav differ diff --git a/audio/KlonoaWahoo.wav b/audio/KlonoaWahoo.wav new file mode 100644 index 0000000..c9d7c41 Binary files /dev/null and b/audio/KlonoaWahoo.wav differ diff --git a/audio/MvC2CyclopsOpticBlast.wav b/audio/MvC2CyclopsOpticBlast.wav new file mode 100644 index 0000000..212cf82 Binary files /dev/null and b/audio/MvC2CyclopsOpticBlast.wav differ diff --git a/audio/MvC3ChrisREatLead.wav b/audio/MvC3ChrisREatLead.wav new file mode 100644 index 0000000..39a27d1 Binary files /dev/null and b/audio/MvC3ChrisREatLead.wav differ diff --git a/audio/MvC3DeadPoolYoMama.wav b/audio/MvC3DeadPoolYoMama.wav new file mode 100644 index 0000000..adf712f Binary files /dev/null and b/audio/MvC3DeadPoolYoMama.wav differ diff --git a/audio/MvC3DrDoomFootDive.wav b/audio/MvC3DrDoomFootDive.wav new file mode 100644 index 0000000..6f4dd36 Binary files /dev/null and b/audio/MvC3DrDoomFootDive.wav differ diff --git a/audio/MvC3MagnetoMagneticBlast.wav b/audio/MvC3MagnetoMagneticBlast.wav new file mode 100644 index 0000000..b0680df Binary files /dev/null and b/audio/MvC3MagnetoMagneticBlast.wav differ diff --git a/audio/MvC3ModokAnalyzeCube.wav b/audio/MvC3ModokAnalyzeCube.wav new file mode 100644 index 0000000..e2801c2 Binary files /dev/null and b/audio/MvC3ModokAnalyzeCube.wav differ diff --git a/audio/MvC3MorriganSoulFist.wav b/audio/MvC3MorriganSoulFist.wav new file mode 100644 index 0000000..3d4843b Binary files /dev/null and b/audio/MvC3MorriganSoulFist.wav differ diff --git a/audio/MvC3PWMoreEvidence.wav b/audio/MvC3PWMoreEvidence.wav new file mode 100644 index 0000000..bc97a41 Binary files /dev/null and b/audio/MvC3PWMoreEvidence.wav differ diff --git a/audio/MvC3SentinelNeutralize.wav b/audio/MvC3SentinelNeutralize.wav new file mode 100644 index 0000000..2e64009 Binary files /dev/null and b/audio/MvC3SentinelNeutralize.wav differ diff --git a/audio/MvC3VergilMotivated.wav b/audio/MvC3VergilMotivated.wav new file mode 100644 index 0000000..c98aef9 Binary files /dev/null and b/audio/MvC3VergilMotivated.wav differ diff --git a/audio/P2HeeHo.wav b/audio/P2HeeHo.wav new file mode 100644 index 0000000..605a964 Binary files /dev/null and b/audio/P2HeeHo.wav differ diff --git a/audio/PKMNDitto.wav b/audio/PKMNDitto.wav new file mode 100644 index 0000000..2fce14d Binary files /dev/null and b/audio/PKMNDitto.wav differ diff --git a/audio/PKMNSkiploom.wav b/audio/PKMNSkiploom.wav new file mode 100644 index 0000000..f20cd39 Binary files /dev/null and b/audio/PKMNSkiploom.wav differ diff --git a/audio/PPTArleBAYOEN.wav b/audio/PPTArleBAYOEN.wav new file mode 100644 index 0000000..e07f042 Binary files /dev/null and b/audio/PPTArleBAYOEN.wav differ diff --git a/audio/PPTExHarddrop.wav b/audio/PPTExHarddrop.wav new file mode 100644 index 0000000..54ae368 Binary files /dev/null and b/audio/PPTExHarddrop.wav differ diff --git a/audio/PPTLemresDonuts.wav b/audio/PPTLemresDonuts.wav new file mode 100644 index 0000000..02be048 Binary files /dev/null and b/audio/PPTLemresDonuts.wav differ diff --git a/audio/PPTOPipi.wav b/audio/PPTOPipi.wav new file mode 100644 index 0000000..10000eb Binary files /dev/null and b/audio/PPTOPipi.wav differ diff --git a/audio/PPTRingoCosine.wav b/audio/PPTRingoCosine.wav new file mode 100644 index 0000000..22f1043 Binary files /dev/null and b/audio/PPTRingoCosine.wav differ diff --git a/audio/PPTSigKapow.wav b/audio/PPTSigKapow.wav new file mode 100644 index 0000000..e31241e Binary files /dev/null and b/audio/PPTSigKapow.wav differ diff --git a/audio/TGM_I.wav b/audio/TGM_I.wav new file mode 100644 index 0000000..a155c9d Binary files /dev/null and b/audio/TGM_I.wav differ diff --git a/audio/TGM_J.wav b/audio/TGM_J.wav new file mode 100644 index 0000000..158365e Binary files /dev/null and b/audio/TGM_J.wav differ diff --git a/audio/TGM_L.wav b/audio/TGM_L.wav new file mode 100644 index 0000000..148a82f Binary files /dev/null and b/audio/TGM_L.wav differ diff --git a/audio/TGM_O.wav b/audio/TGM_O.wav new file mode 100644 index 0000000..26dab85 Binary files /dev/null and b/audio/TGM_O.wav differ diff --git a/audio/TGM_S.wav b/audio/TGM_S.wav new file mode 100644 index 0000000..3e23b06 Binary files /dev/null and b/audio/TGM_S.wav differ diff --git a/audio/TGM_T.wav b/audio/TGM_T.wav new file mode 100644 index 0000000..07da609 Binary files /dev/null and b/audio/TGM_T.wav differ diff --git a/audio/TGM_Z.wav b/audio/TGM_Z.wav new file mode 100644 index 0000000..469e39c Binary files /dev/null and b/audio/TGM_Z.wav differ diff --git a/audio/TheChaseChaserBuzz.wav b/audio/TheChaseChaserBuzz.wav new file mode 100644 index 0000000..6f0c9e2 Binary files /dev/null and b/audio/TheChaseChaserBuzz.wav differ diff --git a/audio/TheChasePlayerBuzz.wav b/audio/TheChasePlayerBuzz.wav new file mode 100644 index 0000000..87d8ba2 Binary files /dev/null and b/audio/TheChasePlayerBuzz.wav differ diff --git a/audio/Touhou11Orin.wav b/audio/Touhou11Orin.wav new file mode 100644 index 0000000..ba40e10 Binary files /dev/null and b/audio/Touhou11Orin.wav differ diff --git a/audio/Touhou61Up.wav b/audio/Touhou61Up.wav new file mode 100644 index 0000000..9f14598 Binary files /dev/null and b/audio/Touhou61Up.wav differ diff --git a/audio/Touhou6Dead.wav b/audio/Touhou6Dead.wav new file mode 100644 index 0000000..c634b1f Binary files /dev/null and b/audio/Touhou6Dead.wav differ diff --git a/audio/UltiChromSorry.wav b/audio/UltiChromSorry.wav new file mode 100644 index 0000000..ffd156f Binary files /dev/null and b/audio/UltiChromSorry.wav differ diff --git a/browserFunctions.js b/browserFunctions.js index 2f94aba..b11be9a 100644 --- a/browserFunctions.js +++ b/browserFunctions.js @@ -1,6 +1,7 @@ function userInfoToClient(userInfo) { for (const user in userInfo) { - const userId = user.replaceAll(" ","_"); + re = new RegExp("\\W","g"); + const userId = user.replaceAll(re,"_"); if ($("#userListPanel").find("#"+userId).length >= 1) { //update buzzer icon of existing user $("#userListPanel").find("#"+userId).find("img").attr("data-buzzerId",userInfo[user].buzzerId); diff --git a/images/buzzers/AC7Missile.png b/images/buzzers/AC7Missile.png new file mode 100644 index 0000000..dfca3ae Binary files /dev/null and b/images/buzzers/AC7Missile.png differ diff --git a/images/buzzers/KHRikuSorry.png b/images/buzzers/KHRikuSorry.png new file mode 100644 index 0000000..d9c2166 Binary files /dev/null and b/images/buzzers/KHRikuSorry.png differ diff --git a/images/buzzers/KlonoaWahoo.png b/images/buzzers/KlonoaWahoo.png new file mode 100644 index 0000000..59b7373 Binary files /dev/null and b/images/buzzers/KlonoaWahoo.png differ diff --git a/images/buzzers/MvC2CyclopsOpticBlast.png b/images/buzzers/MvC2CyclopsOpticBlast.png new file mode 100644 index 0000000..f571ef7 Binary files /dev/null and b/images/buzzers/MvC2CyclopsOpticBlast.png differ diff --git a/images/buzzers/MvC3ChrisREatLead.png b/images/buzzers/MvC3ChrisREatLead.png new file mode 100644 index 0000000..70728cb Binary files /dev/null and b/images/buzzers/MvC3ChrisREatLead.png differ diff --git a/images/buzzers/MvC3DeadPoolYoMama.png b/images/buzzers/MvC3DeadPoolYoMama.png new file mode 100644 index 0000000..f9aa477 Binary files /dev/null and b/images/buzzers/MvC3DeadPoolYoMama.png differ diff --git a/images/buzzers/MvC3DrDoomFootDive.png b/images/buzzers/MvC3DrDoomFootDive.png new file mode 100644 index 0000000..a94c3d6 Binary files /dev/null and b/images/buzzers/MvC3DrDoomFootDive.png differ diff --git a/images/buzzers/MvC3MagnetoMagneticBlast.png b/images/buzzers/MvC3MagnetoMagneticBlast.png new file mode 100644 index 0000000..d1d929e Binary files /dev/null and b/images/buzzers/MvC3MagnetoMagneticBlast.png differ diff --git a/images/buzzers/MvC3ModokAnalyzeCube.png b/images/buzzers/MvC3ModokAnalyzeCube.png new file mode 100644 index 0000000..51c91a7 Binary files /dev/null and b/images/buzzers/MvC3ModokAnalyzeCube.png differ diff --git a/images/buzzers/MvC3MorriganSoulFist.png b/images/buzzers/MvC3MorriganSoulFist.png new file mode 100644 index 0000000..58c7c52 Binary files /dev/null and b/images/buzzers/MvC3MorriganSoulFist.png differ diff --git a/images/buzzers/MvC3PWMoreEvidence.png b/images/buzzers/MvC3PWMoreEvidence.png new file mode 100644 index 0000000..13f1774 Binary files /dev/null and b/images/buzzers/MvC3PWMoreEvidence.png differ diff --git a/images/buzzers/MvC3SentinelNeutralize.png b/images/buzzers/MvC3SentinelNeutralize.png new file mode 100644 index 0000000..0749aa5 Binary files /dev/null and b/images/buzzers/MvC3SentinelNeutralize.png differ diff --git a/images/buzzers/MvC3VergilMotivated.png b/images/buzzers/MvC3VergilMotivated.png new file mode 100644 index 0000000..68d19e0 Binary files /dev/null and b/images/buzzers/MvC3VergilMotivated.png differ diff --git a/images/buzzers/P2HeeHo.png b/images/buzzers/P2HeeHo.png new file mode 100644 index 0000000..1c4db1c Binary files /dev/null and b/images/buzzers/P2HeeHo.png differ diff --git a/images/buzzers/PKMNDitto.png b/images/buzzers/PKMNDitto.png new file mode 100644 index 0000000..740ca1f Binary files /dev/null and b/images/buzzers/PKMNDitto.png differ diff --git a/images/buzzers/PKMNSkiploom.png b/images/buzzers/PKMNSkiploom.png new file mode 100644 index 0000000..45c5abb Binary files /dev/null and b/images/buzzers/PKMNSkiploom.png differ diff --git a/images/buzzers/PPTArleBAYOEN.png b/images/buzzers/PPTArleBAYOEN.png new file mode 100644 index 0000000..7b432a8 Binary files /dev/null and b/images/buzzers/PPTArleBAYOEN.png differ diff --git a/images/buzzers/PPTExHarddrop.png b/images/buzzers/PPTExHarddrop.png new file mode 100644 index 0000000..c938837 Binary files /dev/null and b/images/buzzers/PPTExHarddrop.png differ diff --git a/images/buzzers/PPTLemresDonuts.png b/images/buzzers/PPTLemresDonuts.png new file mode 100644 index 0000000..91117b4 Binary files /dev/null and b/images/buzzers/PPTLemresDonuts.png differ diff --git a/images/buzzers/PPTOPipi.png b/images/buzzers/PPTOPipi.png new file mode 100644 index 0000000..50a7f6e Binary files /dev/null and b/images/buzzers/PPTOPipi.png differ diff --git a/images/buzzers/PPTRingoCosine.png b/images/buzzers/PPTRingoCosine.png new file mode 100644 index 0000000..1ba7e0b Binary files /dev/null and b/images/buzzers/PPTRingoCosine.png differ diff --git a/images/buzzers/PPTSigKapow.png b/images/buzzers/PPTSigKapow.png new file mode 100644 index 0000000..eaf8bf4 Binary files /dev/null and b/images/buzzers/PPTSigKapow.png differ diff --git a/images/buzzers/TGM_I.png b/images/buzzers/TGM_I.png new file mode 100644 index 0000000..bce7869 Binary files /dev/null and b/images/buzzers/TGM_I.png differ diff --git a/images/buzzers/TGM_J.png b/images/buzzers/TGM_J.png new file mode 100644 index 0000000..c0ad7d9 Binary files /dev/null and b/images/buzzers/TGM_J.png differ diff --git a/images/buzzers/TGM_L.png b/images/buzzers/TGM_L.png new file mode 100644 index 0000000..fb7db33 Binary files /dev/null and b/images/buzzers/TGM_L.png differ diff --git a/images/buzzers/TGM_O.png b/images/buzzers/TGM_O.png new file mode 100644 index 0000000..121f8ab Binary files /dev/null and b/images/buzzers/TGM_O.png differ diff --git a/images/buzzers/TGM_S.png b/images/buzzers/TGM_S.png new file mode 100644 index 0000000..02cb774 Binary files /dev/null and b/images/buzzers/TGM_S.png differ diff --git a/images/buzzers/TGM_T.png b/images/buzzers/TGM_T.png new file mode 100644 index 0000000..01a6706 Binary files /dev/null and b/images/buzzers/TGM_T.png differ diff --git a/images/buzzers/TGM_Z.png b/images/buzzers/TGM_Z.png new file mode 100644 index 0000000..f4eb353 Binary files /dev/null and b/images/buzzers/TGM_Z.png differ diff --git a/images/buzzers/TheChaseChaserBuzz.png b/images/buzzers/TheChaseChaserBuzz.png new file mode 100644 index 0000000..51b3944 Binary files /dev/null and b/images/buzzers/TheChaseChaserBuzz.png differ diff --git a/images/buzzers/TheChasePlayerBuzz.png b/images/buzzers/TheChasePlayerBuzz.png new file mode 100644 index 0000000..186bd45 Binary files /dev/null and b/images/buzzers/TheChasePlayerBuzz.png differ diff --git a/images/buzzers/Touhou11Orin.png b/images/buzzers/Touhou11Orin.png new file mode 100644 index 0000000..ebd5952 Binary files /dev/null and b/images/buzzers/Touhou11Orin.png differ diff --git a/images/buzzers/Touhou61Up.png b/images/buzzers/Touhou61Up.png new file mode 100644 index 0000000..a4ccdc9 Binary files /dev/null and b/images/buzzers/Touhou61Up.png differ diff --git a/images/buzzers/Touhou6Dead.png b/images/buzzers/Touhou6Dead.png new file mode 100644 index 0000000..39d20b0 Binary files /dev/null and b/images/buzzers/Touhou6Dead.png differ diff --git a/images/buzzers/UltiChromSorry.png b/images/buzzers/UltiChromSorry.png new file mode 100644 index 0000000..966c9ce Binary files /dev/null and b/images/buzzers/UltiChromSorry.png differ diff --git a/pages/home.html b/pages/home.html index 31769dc..77027bb 100644 --- a/pages/home.html +++ b/pages/home.html @@ -1,7 +1,7 @@ - No, you do not need to mute this site anymore. + You may now put weird characters in your name. @@ -10,6 +10,8 @@ $(document).ready(function() { var socket = io(); + socket.emit("refreshUserInfo"); + socket.on("userInfoToClient", (userInfo) => { userInfoToClient(userInfo); }); @@ -46,6 +48,7 @@ $("#unregisterUsers").click(function() { socket.emit("unregisterUsers"); + location.reload(); }); socket.on("objectionToClient", (userName) => { @@ -84,7 +87,7 @@


- +
diff --git a/pages/play.html b/pages/play.html index e0ebbd8..684e151 100644 --- a/pages/play.html +++ b/pages/play.html @@ -1,7 +1,6 @@ - No, you do not need to mute this site anymore. @@ -21,17 +20,17 @@ ["BuzzinLiveBuzzer"], ["PlokJUMP","PlokWaa","PlokCLEAR","PlokBOSS","PlokGIFT","PlokBONUS"], ["BKGuhHuh","BKKazooieJump","BKEekumBokum","BKJinjoGlaceWhistle","BKGrunty1","BKGoldenFeatherGet","BKHoneycombGet","BKEggGet"], - ["BubsyOhYeah","BubsyUhOh","BubsyLoser","BubsyWhatCouldPawsiblyGoWrong","BubsyImOuttaHere","BubsyCheckOutThatTime","BubsyMyContract"], + ["BubsyOhYeah","BubsyUhOh","BubsyLoser","BubsyWhatCouldPawsiblyGoWrong","BubsyImOuttaHere","BubsyCheckOutThatTime"], ["SkunnyBoioing","SkunnyOw","SkunnyAttention","SkunnyIllBeBack","SkunnyPuddyCat","SkunnyCoocoo","SkunnyAwMan","SkunnyFroggo","SkunnyGhost"], ["Kirbeep","KirbyMic2","KirbySquishy","KirbyBugzzy","KirbyKracko"], + ["Killer7Laugh"], + ["TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight"], + ["Jiggluigibat","SaturnHonk","Kirbeep","UltiFinishZoom","UltiChromSorry"], ["MarioBoing","MarioPenguin","MarioCoin","MPYosh","MPDogF","MPCatF","MarioPlum","WLHelloThere","WLAlright","WLHurryUp","WLOhBoy"], ["PizzaTowerTaunt1"], ["EBWow","EBAttack1","SaturnHonk"], ["AAHoldIt","AATakeThat"], ["Ooh"], - ["Killer7Laugh"], - ["TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight"], - ["Jiggluigibat","SaturnHonk","Kirbeep","UltiFinishZoom"], ["PikminThrow","Pikmin2LouieAMV","Pikmin2Olimar","Pikmin2President","Pikmin2Breadbug"], ["FF9Moogle"], ["MGSAlert"], @@ -40,10 +39,10 @@ ["SonicCheckpoint","SonicOhNo","SonicSusic"], ["EmergencyMeeting"], ["PdPSeren","TAFroggy","TAKamek"], - ["PKMNLvlUp","PKMNCherrim"], + ["PKMNLvlUp","PKMNCherrim","PKMNDitto","PKMNSkiploom"], ["MMShakeShake"], ["AoEWololo"], - ["P3Summon"], + ["P3Summon","P2HeeHo"], ["SplatWoomy","SplatPing"], ["OneShotSun","OneShotRam"], ["TWEWYCrunch","TWEWYNoLimits","TWEWYVerywell"], @@ -54,10 +53,17 @@ ["LoZHello","LoZYahaha"], ["BSBunger","BSKweeble"], ["SourceNotification","SourceMedkit","SourceMeepMerp"], - ["KHXBlade"], + ["KHXBlade","KHRikuSorry"], ["GTMissileArf","GTGhostMode"], ["FECrit"], ["RotTHereCatch"], + ["TheChasePlayerBuzz","TheChaseChaserBuzz"], + ["KlonoaWahoo"], + ["PPTArleBAYOEN","PPTExHarddrop","PPTLemresDonuts","PPTOPipi","PPTRingoCosine","PPTSigKapow"], + ["Touhou6Dead","Touhou61Up","Touhou11Orin"], + ["AC7Missile"], + ["TGM_S"], + ["MvC2CyclopsOpticBlast","MvC3MagnetoMagneticBlast","MvC3DrDoomFootDive","MvC3ModokAnalyzeCube","MvC3MorriganSoulFist","MvC3DeadPoolYoMama","MvC3SentinelNeutralize","MvC3ChrisREatLead","MvC3VergilMotivated","MvC3PWMoreEvidence"], ["Mystery"], ]; let specialBuzzers = { @@ -77,12 +83,13 @@ BubsyUhOh: ["BubsyUhOh","BubsyAwNuts","BubsyByeBye"], BubsyWhatCouldPawsiblyGoWrong: ["BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyDoYouBelieveInMiracles"], BubsyCheckOutThatTime: ["BubsyCheckOutThatTime","BubsyGreatScore"], - BubsyMyContract: ["BubsyMyContract","BubsyIsThereAVeterinarian","BubsyIsTheWritersStrikeOver","BubsyIAmATrainedPurrfessional","BubsyAPyramidScheme","BubsyWhoWroteThisStuff","BubsyAreYouStillPlayin"], + TGM_S: ["TGM_O","TGM_J","TGM_L","TGM_Z","TGM_S","TGM_T","TGM_I"], + // BubsyMyContract: ["BubsyMyContract","BubsyIsThereAVeterinarian","BubsyIsTheWritersStrikeOver","BubsyIAmATrainedPurrfessional","BubsyAPyramidScheme","BubsyWhoWroteThisStuff","BubsyAreYouStillPlayin"], RotTHereCatch: ["RotTHereCatch","RotTEatLead"], } let animatedBuzzers = ["SF3KenParry","PlokCLEAR","FECrit"]; let buzzerOptionsCurrentRow = 0; - let buzzerOptionsTotalRows = 4; + let buzzerOptionsTotalRows = 5; function displayBuzzerOptions() { $("#buzzerOptions").html(""); $("#buzzerOptions").append("
\<
"); @@ -150,6 +157,10 @@ userInfoToClient(userInfo); }); + socket.on("reconnectUsers", () => { + location.reload(); + }); + socket.on("gameStateToClient", (currentTeam, currentScore) => { gameStateToClient(currentTeam, currentScore); });