From d9daef380ed4aaa6855469bcfb88900d70ee6fd1 Mon Sep 17 00:00:00 2001 From: biglyderv Date: Mon, 25 Nov 2024 14:14:20 -0500 Subject: [PATCH] move sounds into dedicated folder --- static/js/index.js | 2 +- static/{assets => sfx}/Elec Piano Loop.wav | Bin static/{assets => sfx}/No.wav | Bin static/{assets => sfx}/Troll.wav | Bin static/{assets => sfx}/Yes.wav | Bin 5 files changed, 1 insertion(+), 1 deletion(-) rename static/{assets => sfx}/Elec Piano Loop.wav (100%) rename static/{assets => sfx}/No.wav (100%) rename static/{assets => sfx}/Troll.wav (100%) rename static/{assets => sfx}/Yes.wav (100%) diff --git a/static/js/index.js b/static/js/index.js index 20db23a..7ec9674 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -170,7 +170,7 @@ class Game extends GameBasic { x.handleTick = type.prototype.handleTick; if (x.r != 1 && type == Player) { - let a = new Audio(`assets/${emojis[x.r]}.wav`); + let a = new Audio(`sfx/${emojis[x.r]}.wav`); a.addEventListener('ended', () => { if (x.you == you) { that.player.playing = false; diff --git a/static/assets/Elec Piano Loop.wav b/static/sfx/Elec Piano Loop.wav similarity index 100% rename from static/assets/Elec Piano Loop.wav rename to static/sfx/Elec Piano Loop.wav diff --git a/static/assets/No.wav b/static/sfx/No.wav similarity index 100% rename from static/assets/No.wav rename to static/sfx/No.wav diff --git a/static/assets/Troll.wav b/static/sfx/Troll.wav similarity index 100% rename from static/assets/Troll.wav rename to static/sfx/Troll.wav diff --git a/static/assets/Yes.wav b/static/sfx/Yes.wav similarity index 100% rename from static/assets/Yes.wav rename to static/sfx/Yes.wav