Advertisement
Game_Logic

Fake Jumpscare

Jul 18th, 2020
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. document.body.innerHTML = document.body.innerHTML+"<audio id='meow' src='http://soundbible.com/mp3/Cat_Meow_2-Cat_Stevens-2034822903.mp3'>"; function jumpscare() { document.getElementById("meow").play(); document.body.innerHTML = "<audio id='meow' autoplay src='http://soundbible.com/mp3/Cat_Meow_2-Cat_Stevens-2034822903.mp3'></audio><img src='https://www.barnorama.com/wp-content/uploads/2013/09/05-Things-Socks-The-Cat.jpg'>"; }; document.addEventListener ("keydown",checkKeyPressed,false); function checkKeyPressed(evt) { if (evt.keyCode == 220) { jumpscare() }; }; alert("Press backslash (\) to activate the jumpscare! Enjoy!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement