playdate.geometry.affineTransform.new(m11, m12, m21, m22, tx, ty)
I have no idea what m11, m12, m21, m22, tx, and ty mean. What do these things mean and more importantly how do I find this out on my own in the future. I would like to rotate an object in a circle every frame.
They are the values of a matrix. And translation values.
Googling: affine transform matrix
Will get you lots of examples lithe shearing, rotation, etc
There’s also the option of simply calling
playdate.geometry.affineTransform.new() without any arguments, then calling
:rotate(…), etc on it to perform the operation(s) you want.
I am now just using image rotation but that comes with some new issues.