Last active
August 13, 2019 20:39
-
-
Save aslilac/1150032 to your computer and use it in GitHub Desktop.
Nyan Hack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function () | |
{ | |
troubadourModeAchieved() | |
overNyanThousandAchieved() | |
var secs = prompt("How many seconds should I say you have nyaned for?"), | |
mute = confirm("I'm going to mute the audio."), | |
fire = confirm("I'm going to make the background change randomly."); | |
startTime.setTime( currentTime.getTime() - parseInt(secs) ); | |
mute && soundManager.mute('loop'); | |
fire && setInterval( blowUpBackground, 150); | |
} | |
)(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){troubadourModeAchieved(),overNyanThousandAchieved();var a=prompt("How many seconds should I say you have nyaned for?"),b=confirm("I\'m going to mute the audio."),c=confirm("I\'m going to make the background change randomly.");startTime.setTime(currentTime.getTime()-parseInt(a)),b&&soundManager.mute("loop"),c&&setInterval(blowUpBackground,150)})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment