This commit is contained in:
Yadciel 2023-03-31 12:42:36 +02:00
parent 322f808f38
commit ebfa3ca1da

View File

@ -17,6 +17,7 @@ class Fahrzeug(pygame.sprite.Sprite):
def draw(self, win):
rotated_image = pygame.transform.rotate(self.image, self.angle)
rotated_rect = rotated_image.get_rect(center=self.rect.center)
#debug nicht anrühren
#self.angle += 1
#pygame.draw.rect(win, (255, 0, 0), rotated_rect)
win.blit(rotated_image, rotated_rect)