PyGame uses a coordinate system where the top left corner is (0,0). That cannot be changed.
If you want to move the origin of the coordinate system to the center of the screen, then you have to translate the coordinates by yourself. For instance write a function that translates the coordinates:
def center_origin(surf, p):
return (p[0] + surf.get_width() // 2, p[1] + surf.get_height() // 2)
screen.blit(my_image, center_origin(screen, (x, y)))
Or use a lambda expression:
center_origin = lambda p: (p[0] + screen.get_width() // 2, p[1] + screen.get_height() // 2)
screen.blit(my_image, center_origin((x, y))
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…