Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devtools/CompleteTestKit/animObj/DynamicDrawableObject.py
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/CompleteTestKit/animObj/DynamicDrawableObject.py')
-rw-r--r--devtools/CompleteTestKit/animObj/DynamicDrawableObject.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/devtools/CompleteTestKit/animObj/DynamicDrawableObject.py b/devtools/CompleteTestKit/animObj/DynamicDrawableObject.py
index 7dcb831d..bb27399 100644
--- a/devtools/CompleteTestKit/animObj/DynamicDrawableObject.py
+++ b/devtools/CompleteTestKit/animObj/DynamicDrawableObject.py
@@ -3,9 +3,13 @@ from DrawableObject import DrawableObject
class DynamicDrawableObject(DrawableObject, pygame.sprite.Sprite):
- def __init__(self,images,textfileName,fps = 10, x = 0, y = 0, xVelocity = 0, yVelocity = 0):
+ def __init__(self, images, textfileName, x = 0, y = 0, transparent=False,
+ fps = 10, xVelocity = 0, yVelocity = 0 ):
self._delay = 1000/fps
+ self.xSpeed = xVelocity
+ self.ySpeed = yVelocity
+
DrawableObject.__init__(self, images, textfileName, x, y)
def addImages(self, images):