how rotate the images with keyboards? [duplicate]
问题 This question already has answers here : How can I make a sprite move when key is held down [duplicate] (3 answers) How do I rotate an image around its center using Pygame? (6 answers) Closed 3 months ago . img1 = pygame.image.load(r"C:\Users\ga-sa\Downloads\As.png") img2 = pygame.image.load(r"C:\Users\ga-sa\Downloads\AssetsXOR.png") img3 = pygame.image.load(r"C:\Users\ga-sa\Downloads\AssetsNOT.png") img4 = pygame.image.load(r"C:\Users\ga-sa\Downloads\AssetsAND.png") background = pygame.image