Sprite Rotation in PICO-8

At least this ended up looking kind of cool.

I have a game idea which needs rotated sprites or at least rotated rectangles, but PICO-8 doesn’t have a built-in way to draw either. I found some sprite rotation libraries and, while I may end up using them, I wanted to at least try writing my own code. I started by porting the textured triangle code from my 3D renderer, but it’s super slow in PICO-8. Then I tried writing a function to draw a rotated rectangle with pixels from the sprite sheet, but that didn’t work either. So I’ll try again tomorrow. See you then!

Leave a comment

Your email address will not be published. Required fields are marked *

Your data is processed in accordance with my privacy policy. Comments are manually approved and may take a while to appear.