How to rotate a triangle to a certain angle in pygame?
问题 I need to rotate a triangle (Not an image) around at the center of the screen. I have seen other people answer this question, but the triangle could not point upwards. I have tried to use other peoples functions, but they see to only work partly, like the function I mentioned above. import pygame disp=pygame.display.set_mode((200,200)) import math def rotate_triange(mouse_pos,triangle_pos): #The code here import time while True: time.sleep(1) pygame.Surface.fill(disp,(255,255,255)) center =