Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/dev/pacmath.activity/pacmanMovement.py
diff options
context:
space:
mode:
Diffstat (limited to 'dev/pacmath.activity/pacmanMovement.py')
-rw-r--r--dev/pacmath.activity/pacmanMovement.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/dev/pacmath.activity/pacmanMovement.py b/dev/pacmath.activity/pacmanMovement.py
index 5c2fce3..c229d58 100644
--- a/dev/pacmath.activity/pacmanMovement.py
+++ b/dev/pacmath.activity/pacmanMovement.py
@@ -100,3 +100,13 @@ class pacmanMovement(pygame.sprite.Sprite):
# Update ONLY the modified areas of the screen
pygame.display.update([self.old, self.rect])
+
+ def clearSelf(self, screen, mazeObj):
+ gridX = int(round(self.rect.x/MAZE_SIZE, 0) )
+ gridY = int(round(self.rect.y/MAZE_SIZE, 0) )
+ mazeObj.drawPoint(screen, gridX, gridY)
+ pygame.display.update(self.rect)
+
+ def drawSelf(self, screen):
+ screen.blit(self.images[self.imageIndex], self.rect)
+ pygame.display.update(self.rect)