Skip to content

Instantly share code, notes, and snippets.

@zachelko
Created April 8, 2010 05:25
Show Gist options
  • Select an option

  • Save zachelko/359808 to your computer and use it in GitHub Desktop.

Select an option

Save zachelko/359808 to your computer and use it in GitHub Desktop.
Roll the ball
# If we need to rotate our player (character is a ball, etc...)
if (self.rotate == True and moveX != 0):
if (moveX < 0): self.image = pygame.transform.rotate(self.image, -90)
else: self.image = pygame.transform.rotate(self.image, 90)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment