Fahrzeug #2

Merged
Yadciel merged 4 commits from Fahrzeug into main 2023-03-31 12:47:11 +02:00
Showing only changes of commit ebfa3ca1da - Show all commits

View File

@ -17,6 +17,7 @@ class Fahrzeug(pygame.sprite.Sprite):
def draw(self, win): def draw(self, win):
rotated_image = pygame.transform.rotate(self.image, self.angle) rotated_image = pygame.transform.rotate(self.image, self.angle)
rotated_rect = rotated_image.get_rect(center=self.rect.center) rotated_rect = rotated_image.get_rect(center=self.rect.center)
#debug nicht anrühren
#self.angle += 1 #self.angle += 1
Yadciel marked this conversation as resolved
Review

kommentar?

kommentar?
#pygame.draw.rect(win, (255, 0, 0), rotated_rect) #pygame.draw.rect(win, (255, 0, 0), rotated_rect)
win.blit(rotated_image, rotated_rect) win.blit(rotated_image, rotated_rect)