Created
April 8, 2010 05:25
-
-
Save zachelko/359808 to your computer and use it in GitHub Desktop.
Roll the ball
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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