Skip to content
Snippets Groups Projects
Commit 89c42f60 authored by Robert Seimetz's avatar Robert Seimetz
Browse files

Make modifications to AngleProjectile rotation mechanism

parent ce3ccb24
No related branches found
No related tags found
No related merge requests found
......@@ -261,7 +261,7 @@ class AngleProjectile(pygame.sprite.Sprite):
def __init__(self, pos, angle, size, image):
_Object.__init__(self, pos, size, image)
pygame.sprite.Sprite.__init__(self)
self.image = self.image.rotate(angle)
self.image = pygame.transform.rotate(self.image, angle)
self.angle = angle
self.rect = self.image.get_rect()
self.rect.topleft = pos
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment