From d64ea3c18599d3df0065b6466c90bbdf0411bd56 Mon Sep 17 00:00:00 2001 From: slm Date: Thu, 05 Aug 2010 04:56:35 +0000 Subject: Deleted depreciated directories of tests - finalized the prototype of the Drawable Object test to be included in the complete test kit. --- (limited to 'DrawableObjectTests/StaticDrawableObject.py') 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) - - - -- cgit v0.9.1