Submitted by TiborUdvari t3_11vopcb in InternetIsBeautiful
TiborUdvari OP t1_jcuwso6 wrote
Reply to comment by moldy912 in Line Rider on bank stocks by TiborUdvari
I tried that at the beginning, but it was too choppy for the game. The rider would just directly face plant because of the mini edges. This way you wan draw it so it actually works as well.
moldy912 t1_jcux509 wrote
Yeah I mean if it’s possible, you could definitely pass the curve through a filter or smoothing function or transform it into a Bézier curve.
TiborUdvari OP t1_jcuynqp wrote
Also thought about that next, but was worried that I might blow my API key limits. Set up a server to get the live data, caching etc. Crédit Suisse was crashing way faster that that. This way you can go ahead and get any stock ticket in the background. Just use the little 📈 button in the corner to activate the stock interaction.
Tm1337 t1_jcvi2kc wrote
That doesn't make sense. If you already have the graph it's simple to somehow smooth it in javascript without any API call.
My first try would be a moving average, which is really simple to implement and adjust.
TiborUdvari OP t1_jcvlsud wrote
I don't have the data for the graph, it's an embed. I tried the API way at the beginning, but changed direction to this.
GordonRamsey666 t1_jcv54rg wrote
Nah it's great the way it is
Viewing a single comment thread. View all comments