I am building a tank game for an assignment at school. I have got projectile motion happening perfectly and power and launch angle can be adjusted. The game is a simple tank game which uses projectile motion to fire a projectile at the opposing tank on the other side of the map. At the present i have not yet got backgrounds working.
The main problem i have come across at the moment is getting the turret of the tank to rotate to the launch angle. The way i see it there are two ways to do this:
a) use pygame to rotate the image depending upon the angle or;

draw 180 sprites for the angle rotation.
I have found a method that i believe should work to rotate the image, however i cant seem to get it to work in my pygame. The method is pygame.transform.rotate. Currently when i add the pygame.transform.rotate method the turret does not draw on the screen. Very frustrating...
My Turret class is as shown;
CODE
class Turret:
def __init__(self, x, surface, angle):
self.x = x
self.y = 100
self.image = pygame.image.load("Sprites/turret.bmp")#Load player turret spriye
image = self.image
image.set_colorkey(image.get_at((0,0))) #Removes white background from sprite
self.rotate = pygame.transform.rotate
self.image = self.rotate(surface, angle)
def draw (self):
screen.blit(self.image, (self.x, self.y))
def turretlocationx(self):
return self.x+60
def turretlocationy(self):
return self.y
If anyone knows how to work the pygame.transform.rotate method help would be much appreciated. I have seen the Line by Line Chimp example on the pygame website. This tutorial didnt help me the slightest

Any help will be much appreciated. If you know of a program that can draw 180 different angle sprites without me having to draw them manually that would also be appreciated.
Thanks for the potential help
Lowrie