←back to thread

Show HN: Boing

(boing.greg.technology)
269 points gregsadetsky | 2 comments | | HN request time: 0.422s | source
Show context
TheAceOfHearts ◴[] No.46094243[source]
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(3): >>46094464 #>>46094608 #>>46094997 #
1. coffeecoders ◴[] No.46094608[source]
Looks like a simple exponential drag/sprint-return simulation using requestAnimationFrame.

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

replies(1): >>46094749 #
2. lionkor ◴[] No.46094749[source]
If they wanted an AI answer, surely they would have asked AI