Re:Infinite Mario in HTML5
by bprater on Saturday July 23, 2011 @06:31AM
(#2796654)
Too bad the source is obfuscated. This is the kind of thing that could draw a young person into digging deeper into programming.
[ Parent
| on HN ]
Re:Infinite Mario in HTML5
by stevenleeg on Saturday July 23, 2011 @08:38AM
(#2796824)
https://github.com/robertkleffner/mariohtml5/
Nope, it's actually open source.
It's always disappointing when people's cool demos have obfuscated/minified JS source. It destroys the readability and hackability of the code, and it means that if you find bugs (like I did in this demo) you can't trivially fix them either.
You can always use Javascript Deminifier For Firefox
https://addons.mozilla.org/en-US/firefox/addon/javascript-de...
For Chrome, there's the built-in de-obfuscator http://www.sitepoint.com/whats-new-in-google-chrome-12/
Re:Infinite Mario in HTML5
by CrystalKoo on Saturday July 23, 2011 @06:15PM
(#2797978)
You can copy and paste the .min.js file into http://jsbeautifier.org/. That would beautify everything so it's readable. :)
Crystal
The source is obfuscated? It's just one-lined. Copy-paste here: http://jsbeautifier.org/
I don't know why they even bothered un-white-spacing it. Doing so doesn't save much space, nor provide any kind of real obfuscation. At best it just makes it un-debuggable (hmm. seems like an oversight (that most debuggers also miss) that you can't set breakpoints inside a single line of code...)