Many people have asked me for the uncompressed source of my Perlin flames script. At first I though about keeping it private, so people would have to reverse engineer the compressed code. After all, reverse engineering is how I learned the majority of what I know about programming today. But I realized that not everybody may have time to waste on such efforts when I wanted to have a copy of the original source of WOLF1k and couldn’t be bothered to decode it myself. So, I’ve made the uncompressed source available here. This is the source after I manually optimized it for size and it doesn’t have any useful inline documentation: I found it much easier to memorize what each part of 1k of script does than continuously update documentation as I wrote it.
I still believe it is a good exercise to extract the source from the encoded version, as you learn a lot more that way, but I’ll leave that choose to you.


1 Comment to “JavaScript Perlin flames source”
2010/12/23
Getting the source code of most packed scripts is as simple as replacing the eval(foo) by a prompt(”,foo) .
I also think that documentation is overkill for such short scripts. Better write a short How-To or Post-Morterm to give the highlights of the scripts.