I'm making a simple game to get my knowledge of Python and Pygame going, but, since I haven't used rotation before, I am encountering a problem. Every time my rectangle rotates, it gets bigger and smaller, and my game needs a centered rotating object.
I have two solutions, maybe three. Will any of these work? If not, do you have a solution of your own?
- Move the coods of my rectangle back and forth depending on the angle - This would be hard work.
- Is there a way to blit an object by the middle of it, rather than the top left corner? This would be perfect
- Use sprites??? I'm not sure if it would help at all, I haven't looked into or learnt anything about sprites at all yet.