[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pygame] Rotating Sprites
> I would put them in a list, like so:
>
> self.anim = []
> for angle in range(360):
> self.anim.append(pygame.transform.rotozoom(self.originalimage,angle,0))
Actually, now that I think about that one, it will create a LARGE list
of 360 different frames, which would work fine, but you might not want
360 of them. So, let's try this:
rotframes = 10 # for example
self.anim = []
for angle in range(rotframes):
self.anim.append(pygame.transform.rotozoom(self.originalimage,
angle*(360.0/rotframes),
0))
Nat
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org