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-27 14:50:48 (GMT)
committer davesilver <nibor123@gmail.com>2010-07-27 14:50:48 (GMT)
commit1fd3d4e07729bb64e86c84568a8ea1153808dfa5 (patch)
treea16321e0bfeea18c9471f5be290a97ba672d5a99 /devtools/CompleteTestKit
parentf881a5a0fbfaaa70ac3c91ed39876b5f73cc2225 (diff)
Editing Sprite tests
Diffstat (limited to 'devtools/CompleteTestKit')
-rw-r--r--devtools/CompleteTestKit/DynamicDrawableObject2.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/devtools/CompleteTestKit/DynamicDrawableObject2.py b/devtools/CompleteTestKit/DynamicDrawableObject2.py
index afb6195..b0e8ac7 100644
--- a/devtools/CompleteTestKit/DynamicDrawableObject2.py
+++ b/devtools/CompleteTestKit/DynamicDrawableObject2.py
@@ -50,21 +50,14 @@ class DynamicDrawableObject(DrawableObject, pygame.sprite.Sprite):
def update(self, t):
#if self.animations[cnt] == self._current_anim:
-
- print self.animations.get(self._current_anim)[0]
- print self.animations.get(self._current_anim)[1]
- print t
- print self._last_update
timePassed = t + self._last_update
- print timePassed
if timePassed > self._delay:
-
+ print "yes"
if self._frame < self.animations.get(self._current_anim)[0] or self._frame > self.animations.get(self._current_anim)[1]: #checking if I am in the animation and putting me there if I am not
self._frame = self.animations.get(self._current_anim)[0]
self._frame += timePassed/self._delay
- print self._frame
while self._frame >= self.animations.get(self._current_anim)[1]:
framesPast = self._frame - self.animations.get(self._current_anim)[1]