diff options
author | slm <jtmengel@gmail.com> | 2010-08-05 04:56:35 (GMT) |
---|---|---|
committer | slm <jtmengel@gmail.com> | 2010-08-05 04:56:35 (GMT) |
commit | d64ea3c18599d3df0065b6466c90bbdf0411bd56 (patch) | |
tree | 2d230492a3558602b9841ff08ff4438647776f53 /DrawableObjectTests/StaticDrawableObject.py | |
parent | 3b059d14fd5de2efd69beef7a6b1e362bacb1dd8 (diff) |
Deleted depreciated directories of tests - finalized the prototype of the Drawable Object test to be included in the complete test kit.
Diffstat (limited to 'DrawableObjectTests/StaticDrawableObject.py')
-rwxr-xr-x | DrawableObjectTests/StaticDrawableObject.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/DrawableObjectTests/StaticDrawableObject.py b/DrawableObjectTests/StaticDrawableObject.py deleted file mode 100755 index 6486eb2..0000000 --- a/DrawableObjectTests/StaticDrawableObject.py +++ /dev/null @@ -1,32 +0,0 @@ -import pygame
-from DrawableObject import DrawableObject
-
-class StaticDrawableObject(pygame.sprite.Sprite):
-
- def __init __(self,images,textfileName,fps = 10):
- pygame.sprite.Sprite.__init__(self)
- self._images = images
-
- self._start = pygame.time.get_ticks()
- self._delay = 1000 / fps
- self._last_update = 0
- self._frame = 0
- self.animations = {}
-
- if textfileName != '':
-
- f = open(textfileName, 'r')
- currentLine = f.readline()
- while currentLine != '':
-
- animValues = currentLine.split(",")
- self.animations[animValues[0]] = [int(animValues[1]), int(animValues[2])]
- currentLine = f.readline()
-
-
- def addImages(self, images):
-
- self._images.extend(images)
-
-
-
|