3 ms·
Here are the algorithms for PICO-8's sin(), cos() and atan2(), as implemented by the Picolove emulator: https://github.com/picolove/picolove/blob/4b79a3b7ebd1d1
by scambier 4y ago
Here are the algorithms for PICO-8's sin(), cos() and atan2(), as implemented by the Picolove emulator:
https://github.com/picolove/picolove/blob/4b79a3b7ebd1d1bc6c2838b43856e2ac2ff5f84b/api.lua#L1357-L1369 https://github.com/picolove/picolove/blob/4b79a3b7ebd1d1bc6c...
Also, since PICO-8 coordinates have their origin in the top-left corner (y goes down), sin()'s result is also inverted.