Skip to content

Instantly share code, notes, and snippets.

@aslilac
Last active August 13, 2019 20:39
Show Gist options
  • Save aslilac/1150032 to your computer and use it in GitHub Desktop.
Save aslilac/1150032 to your computer and use it in GitHub Desktop.
Nyan Hack
;(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);
}
)();
(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