We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contrast the following cart in pico8 and picolove
http://www.lexaloffle.com/bbs/?tid=2464
It's set to tween using ease_in_out_cubicwhich gets great results in pico8, but bad results in picolove. Other easing functions are also affected.
ease_in_out_cubic
function ease_in_out_cubic(t,b,c,d) -- cubic easing in/out - acceleration until halfway, then deceleration t /= d/2 if (t < 1) return c/2*t*t*t + b t -= 2 return c/2*(t*t*t + 2) + b end
I've ruled out short operators by manually expanding them. No difference.
Perhaps an issue with expression parsing?
The text was updated successfully, but these errors were encountered:
Thanks, good find!
The problem is with t /= d/2
t /= d/2
This expands to t = t / d/2 when it should expand to t = t / (d/2)
t = t / d/2
t = t / (d/2)
Sorry, something went wrong.
Sadly, this is not an easy fix, I'll need to implement a modified lua parser to handle this case, and also some of the other shorthand.
Thanks for the info.
The workaround in my code is to do:
t /= (d/2)
which then expands correctly.
No branches or pull requests
Contrast the following cart in pico8 and picolove
http://www.lexaloffle.com/bbs/?tid=2464
It's set to tween using
ease_in_out_cubic
which gets great results in pico8, but bad results in picolove. Other easing functions are also affected.I've ruled out short operators by manually expanding them. No difference.
Perhaps an issue with expression parsing?
The text was updated successfully, but these errors were encountered: