Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/dev/pacmath.activity/GhostMovement.py
diff options
context:
space:
mode:
Diffstat (limited to 'dev/pacmath.activity/GhostMovement.py')
-rw-r--r--dev/pacmath.activity/GhostMovement.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/dev/pacmath.activity/GhostMovement.py b/dev/pacmath.activity/GhostMovement.py
index 1068015..75beefa 100644
--- a/dev/pacmath.activity/GhostMovement.py
+++ b/dev/pacmath.activity/GhostMovement.py
@@ -116,3 +116,13 @@ class ghostMovement(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.image, self.rect)
+ pygame.display.update(self.rect)