diff --git a/cat-sounds/meow1.mp3 b/cat-sounds/meow1.mp3 new file mode 100644 index 0000000..8a551fe Binary files /dev/null and b/cat-sounds/meow1.mp3 differ diff --git a/cat-sounds/meow10.mp3 b/cat-sounds/meow10.mp3 new file mode 100644 index 0000000..15e6117 Binary files /dev/null and b/cat-sounds/meow10.mp3 differ diff --git a/cat-sounds/meow2.mp3 b/cat-sounds/meow2.mp3 new file mode 100644 index 0000000..039ea5e Binary files /dev/null and b/cat-sounds/meow2.mp3 differ diff --git a/cat-sounds/meow3.mp3 b/cat-sounds/meow3.mp3 new file mode 100644 index 0000000..6a45a29 Binary files /dev/null and b/cat-sounds/meow3.mp3 differ diff --git a/cat-sounds/meow4.mp3 b/cat-sounds/meow4.mp3 new file mode 100644 index 0000000..a0a2ec5 Binary files /dev/null and b/cat-sounds/meow4.mp3 differ diff --git a/cat-sounds/meow5.mp3 b/cat-sounds/meow5.mp3 new file mode 100644 index 0000000..171f80d Binary files /dev/null and b/cat-sounds/meow5.mp3 differ diff --git a/cat-sounds/meow6.mp3 b/cat-sounds/meow6.mp3 new file mode 100644 index 0000000..ac8c72e Binary files /dev/null and b/cat-sounds/meow6.mp3 differ diff --git a/cat-sounds/meow7.mp3 b/cat-sounds/meow7.mp3 new file mode 100644 index 0000000..16bb1b2 Binary files /dev/null and b/cat-sounds/meow7.mp3 differ diff --git a/cat-sounds/meow8.mp3 b/cat-sounds/meow8.mp3 new file mode 100644 index 0000000..ad5047a Binary files /dev/null and b/cat-sounds/meow8.mp3 differ diff --git a/cat-sounds/meow9.mp3 b/cat-sounds/meow9.mp3 new file mode 100644 index 0000000..4c9eacd Binary files /dev/null and b/cat-sounds/meow9.mp3 differ diff --git a/script.js b/script.js index 4a60adb..5215322 100755 --- a/script.js +++ b/script.js @@ -3187,8 +3187,8 @@ Rect.prototype.contains = function(x, y) { function catSound() { - let sounds = ["https://www.myinstants.com/media/sounds/meow2.mp3", "https://www.myinstants.com/media/sounds/meow_QO6VsE6.mp3", "https://www.myinstants.com/media/sounds/cat-meow-mp3.mp3"] - let random = sounds[Math.floor(Math.random()*sounds.length)] + let sounds = ["cat-sounds/meow1.mp3", "cat-sounds/meow2.mp3", "cat-sounds/meow3.mp3", "cat-sounds/meow4.mp3", "cat-sounds/meow5.mp3", "cat-sounds/meow6.mp3", "cat-sounds/meow7.mp3", "cat-sounds/meow8.mp3", "cat-sounds/meow9.mp3", "cat-sounds/meow10.mp3"]; + let random = sounds[Math.floor(Math.random()*sounds.length)]; const meow = new Audio(random); meow.play(); } @@ -3201,10 +3201,6 @@ document.getElementById('more-button').onclick = catSound - - - - // misc ////////////////////////////////////////////////////////////////