Skip to content

Instantly share code, notes, and snippets.

@gamehelp16
gamehelp16 / activate.js
Created December 25, 2016 06:24
A little script to paste into https://isitchristmas.com/ to create some cool effects. Preview: http://i.imgur.com/0TJZmmf.gif
var count = 0;
var count2 = 0;
var auto = setInterval(function() {
var centerX = 300;
var centerY = 300;
var asd = Math.round(count * 10) / 180 * Math.PI;
var radius = 125 + Math.cos(asd) * 25; // wave
var radius2 = 0; // flag
var radius3 = 75 + Math.cos(asd) * 25; // ghost
@gamehelp16
gamehelp16 / source.js
Created March 16, 2016 13:07
The 'original' source of my 2016 JS1k entry: 'Elemental Forest'
/*
Story time, after submitting an update to the demo I planned to make another
update for the demo (which I didn't submit in the end) so I edited the code
to do some edits etc etc. And maybe you've guessed it, stupid me didn't make
a copy of the original source of the demo and just modified the code straight
away. Therefore, I have to reverse the changes in the code but I can't seem to
restore the changes completely. So, here's the almost original source of the
demo. It's not exactly the same as the one submitted, but it's almost the same
and the differences between this and the original code should be just very