Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/DrawableObjectTests/StaticDrawableObject.py
diff options
context:
space:
mode:
Diffstat (limited to 'DrawableObjectTests/StaticDrawableObject.py')
-rwxr-xr-xDrawableObjectTests/StaticDrawableObject.py32
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)
-
-
-