Image

I found a code online and took it apart and then put it back together again with my own stuff, but I still can't figure out exactly what each of the parts do. Could anyone help me decipher it? Please?

The code can be found in text form here while the actual game is here.

Thanks!