Pygame 旋转大小问题

问题描述

我正在尝试旋转图像,使其始终面向鼠标,但我注意到图像大小正在发生变化。我正在尝试排除故障,但没有运气。我希望得到一些建议。

这是我正在使用的:

ang = 360 - math.atan2(mousey - 540,mousex - 960) * 180 / math.pi
rotcircle = pygame.transform.scale(pygame.transform.rotate(redcircle,ang),[100,100])
rect = rotcircle.get_rect(center=(960,540))
screen.blit(rotcircle,rect)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)