From 8886d5111aa4ae75f54f46c93f09fa7548979969 Mon Sep 17 00:00:00 2001 From: Minteck <46352972+Minteck@users.noreply.github.com> Date: Fri, 9 Jul 2021 00:37:48 +0200 Subject: Fixes --- sfx/notification.mp3 | Bin 0 -> 41006 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 sfx/notification.mp3 (limited to 'sfx') diff --git a/sfx/notification.mp3 b/sfx/notification.mp3 new file mode 100644 index 0000000..c3dc438 Binary files /dev/null and b/sfx/notification.mp3 differ -- cgit From c3b756f987ffd8ca981c1e6f23435c74aad36aea Mon Sep 17 00:00:00 2001 From: Minteck <46352972+Minteck@users.noreply.github.com> Date: Sat, 10 Jul 2021 16:03:26 +0200 Subject: Fixes --- sfx/click.mp3 | Bin 4461 -> 8641 bytes sfx/crash.mp3 | Bin 9453 -> 13194 bytes sfx/intro.mp3 | Bin 9026 -> 0 bytes sfx/last.mp3 | Bin 8168 -> 26670 bytes sfx/menu.mp3 | Bin 5037 -> 7561 bytes sfx/notification.mp3 | Bin 41006 -> 11425 bytes sfx/pass.mp3 | Bin 10884 -> 22309 bytes sfx/pause.mp3 | Bin 11565 -> 14353 bytes sfx/win.mp3 | Bin 3361 -> 24337 bytes 9 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 sfx/intro.mp3 (limited to 'sfx') diff --git a/sfx/click.mp3 b/sfx/click.mp3 index 710c85b..20feda0 100644 Binary files a/sfx/click.mp3 and b/sfx/click.mp3 differ diff --git a/sfx/crash.mp3 b/sfx/crash.mp3 index 1ce02e9..c68bb1f 100644 Binary files a/sfx/crash.mp3 and b/sfx/crash.mp3 differ diff --git a/sfx/intro.mp3 b/sfx/intro.mp3 deleted file mode 100644 index 5d90f31..0000000 Binary files a/sfx/intro.mp3 and /dev/null differ diff --git a/sfx/last.mp3 b/sfx/last.mp3 index 2595f73..ff00ddf 100644 Binary files a/sfx/last.mp3 and b/sfx/last.mp3 differ diff --git a/sfx/menu.mp3 b/sfx/menu.mp3 index f48daa8..626a82e 100644 Binary files a/sfx/menu.mp3 and b/sfx/menu.mp3 differ diff --git a/sfx/notification.mp3 b/sfx/notification.mp3 index c3dc438..09f548a 100644 Binary files a/sfx/notification.mp3 and b/sfx/notification.mp3 differ diff --git a/sfx/pass.mp3 b/sfx/pass.mp3 index 04caca0..e4fc004 100644 Binary files a/sfx/pass.mp3 and b/sfx/pass.mp3 differ diff --git a/sfx/pause.mp3 b/sfx/pause.mp3 index aedcd13..76d0634 100644 Binary files a/sfx/pause.mp3 and b/sfx/pause.mp3 differ diff --git a/sfx/win.mp3 b/sfx/win.mp3 index 9a7ae56..d3c3b89 100644 Binary files a/sfx/win.mp3 and b/sfx/win.mp3 differ -- cgit From 44210691ee8444509ac466a362337af77f2bcd49 Mon Sep 17 00:00:00 2001 From: Minteck <46352972+Minteck@users.noreply.github.com> Date: Tue, 20 Jul 2021 01:30:23 +0200 Subject: Commit --- sfx/gamecrash.wav | Bin 0 -> 51846 bytes sfx/intro.mp3 | Bin 0 -> 106606 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 sfx/gamecrash.wav create mode 100644 sfx/intro.mp3 (limited to 'sfx') diff --git a/sfx/gamecrash.wav b/sfx/gamecrash.wav new file mode 100644 index 0000000..4f42092 Binary files /dev/null and b/sfx/gamecrash.wav differ diff --git a/sfx/intro.mp3 b/sfx/intro.mp3 new file mode 100644 index 0000000..39eeae8 Binary files /dev/null and b/sfx/intro.mp3 differ -- cgit From d5a620cf09b835db2bccd99556525c90b458719f Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 5 Aug 2021 17:21:23 +0200 Subject: i18n for 21.08 --- sfx/sfx.js | 118 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 59 insertions(+), 59 deletions(-) (limited to 'sfx') diff --git a/sfx/sfx.js b/sfx/sfx.js index 9ed6418..71e3fe3 100644 --- a/sfx/sfx.js +++ b/sfx/sfx.js @@ -1,60 +1,60 @@ -const Sound = { - pass: () => { - new Audio(kresources.sfx['pass']).play() - }, - last: () => { - new Audio(kresources.sfx['last']).play() - }, - crash: () => { - new Audio(kresources.sfx['crash']).play() - }, - win: () => { - new Audio(kresources.sfx['win']).play() - }, - click: () => { - new Audio(kresources.sfx['click']).play() - }, - menu: () => { - new Audio(kresources.sfx['menu']).play() - }, - pause: () => { - new Audio(kresources.sfx['pause']).play() - }, - start: () => { - new Audio(kresources.sfx['start']).play() - }, - intro: () => { - new Audio(kresources.music['start'].file).play() - }, -} - -shouldMusicPlay = true; - -setInterval(() => { - try { - if (typeof document.getElementById('music') !== "undefined" && typeof document.getElementById('music') !== "null") { - if (shouldMusicPlay) { - document.getElementById('music').play(); - } - if (!shouldMusicPlay) { - document.getElementById('music').pause(); - } - } - if (typeof b !== "undefined" && typeof b !== "null") { - if (shouldMusicPlay) { - b.play(); - } - if (!shouldMusicPlay) { - b.pause(); - } - } - if (typeof me !== "undefined" && typeof me !== "null") { - if (me.currentTime < me.duration) { - me.play(); - } - if (me.currentTime >= me.duration) { - me.pause(); - } - } - } catch (e) {} +const Sound = { + pass: () => { + new Audio(kresources.sfx['pass']).play() + }, + last: () => { + new Audio(kresources.sfx['last']).play() + }, + crash: () => { + new Audio(kresources.sfx['crash']).play() + }, + win: () => { + new Audio(kresources.sfx['win']).play() + }, + click: () => { + new Audio(kresources.sfx['click']).play() + }, + menu: () => { + new Audio(kresources.sfx['menu']).play() + }, + pause: () => { + new Audio(kresources.sfx['pause']).play() + }, + start: () => { + new Audio(kresources.sfx['start']).play() + }, + intro: () => { + new Audio(kresources.music['start'].file).play() + }, +} + +shouldMusicPlay = true; + +setInterval(() => { + try { + if (typeof document.getElementById('music') !== "undefined" && typeof document.getElementById('music') !== "null") { + if (shouldMusicPlay) { + document.getElementById('music').play(); + } + if (!shouldMusicPlay) { + document.getElementById('music').pause(); + } + } + if (typeof b !== "undefined" && typeof b !== "null") { + if (shouldMusicPlay) { + b.play(); + } + if (!shouldMusicPlay) { + b.pause(); + } + } + if (typeof me !== "undefined" && typeof me !== "null") { + if (me.currentTime < me.duration) { + me.play(); + } + if (me.currentTime >= me.duration) { + me.pause(); + } + } + } catch (e) {} }, 200) \ No newline at end of file -- cgit