by Jabz



The code Is basically just a recreation of Andy Sloane's donut.c code just made to work in pico8. I'm still not great when it comes to coding especially 3D rendering, so I'm sure there are tons of stuff that I could have done to make this code run a lot faster. Feel free to comment if there are any problems or improvents that could be made.
by Jabz


This is a update verision of the ASCII donut with backface culling and sorted quadfills for the faces.
Andy Sloan's donut code: https://www.a1k0n.net/2011/07/20/donut-math.html



You could replace update60 with regular update. You don't gain anything from running at 60fps since it's too performance-intensive anyway and will drop to 30fps. This way would ensure you have a stable FPS, and also don't go above the limit.
[Please log in to post a comment]