Questions tagged [pygame2]

Introducing the latest release of PyGame - version 2.0! This updated version maintains backward compatibility and also offers support for Python 2.

What is the best way to rotate an image around its center in Pygame?

I've been attempting to rotate an image around its center using pygame.transform.rotate() but for some reason it's not working as expected. The specific line of code causing issues is rot_image = rot_image.subsurface(rot_rect).copy(). This results in the f ...