Skip to content

Instantly share code, notes, and snippets.


Richard Sudaryono gamehelp16

View GitHub Profile
gamehelp16 / activate.js
Created Dec 25, 2016
A little script to paste into to create some cool effects. Preview:
View activate.js
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 / source.js
Created Mar 16, 2016
The 'original' source of my 2016 JS1k entry: 'Elemental Forest'
View source.js
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
You can’t perform that action at this time.