Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devtools/CompleteTestKit
diff options
context:
space:
mode:
authordavesilver <nibor123@gmail.com>2010-07-26 21:16:31 (GMT)
committer davesilver <nibor123@gmail.com>2010-07-26 21:16:31 (GMT)
commit9533752c3a69c376472d62c33e88f7640ce297d8 (patch)
tree78b34aa4e7b2b81682bc8ce31e7bb370ddec1597 /devtools/CompleteTestKit
parent94a61bef6511bdd000ecc573505cfa053db405d4 (diff)
Editing Sprite tests
Diffstat (limited to 'devtools/CompleteTestKit')
-rw-r--r--devtools/CompleteTestKit/DynamicDrawableObject.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/devtools/CompleteTestKit/DynamicDrawableObject.py b/devtools/CompleteTestKit/DynamicDrawableObject.py
index 01b3848..7de643c 100644
--- a/devtools/CompleteTestKit/DynamicDrawableObject.py
+++ b/devtools/CompleteTestKit/DynamicDrawableObject.py
@@ -30,13 +30,13 @@ class DynamicDrawableObject(DrawableObject, pygame.sprite.Sprite):
# If we're at the top or bottom of the screen, switch directions.
if (self.yPos + self.ySize) >= bottom or self.yPos < 0: self.ySpeed = self.ySpeed * -1
- if (self.yPos + self.ySize) >= bottom and self.ySpeed < 0: self.ySpeed = self.ySpeed * -1
- if self.yPos < 0 and self.ySpeed > 0: self.ySpeed = self.ySpeed * -1
+ if (self.yPos + self.ySize) >= bottom and self.ySpeed > 0: self.ySpeed = self.ySpeed * -1
+ if self.yPos < 0 and self.ySpeed < 0: self.ySpeed = self.ySpeed * -1
# If we're at the right or left of the screen, switch directions.
if (self.xPos + self.xSize) >= right or self.xPos < 0: self.xSpeed = self.xSpeed * -1
- if (self.xPos + self.xSize) >= right and self.xSpeed > 0: self.xSpeed = self.xSpeed * -1
- if self.xPos < 0 and self.xSpeed < 0: self.xSpeed = self.xSpeed * -1
+ if (self.xPos + self.xSize) >= right and self.xSpeed < 0: self.xSpeed = self.xSpeed * -1
+ if self.xPos < 0 and self.xSpeed > 0: self.xSpeed = self.xSpeed * -1
self.move()