logoalt Hacker News

TheAceOfHeartstoday at 6:00 AM3 repliesview on HN

Any consideration on sharing the unminified code? I was a bit curious to read through the code and it seems like such a shame to keep it obfuscated. From a quick perusal, it seems like the bulk of the code comes from howler.js (a sound library), and the core functionality is conveniently implemented below the mobile template.


Replies

gregsadetskytoday at 8:52 AM

Of course! https://github.com/gregsadetsky/boing

show 1 reply
sixtyjtoday at 6:57 AM

Online unminifier doesn’t work? E.g. https://www.unminify2.com/

coffeecoderstoday at 7:27 AM

Looks like a simple exponential drag/sprint-return simulation using requestAnimationFrame.

Here is AI's implementation. https://jsfiddle.net/z0or7d2y/1/

show 1 reply