Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kitson <msk5293@rit.edu>2010-11-09 22:36:43 (GMT)
committer Michael Kitson <msk5293@rit.edu>2010-11-09 22:36:43 (GMT)
commit1e06e6c69fbfc5a0511fc0c75dc86ea8b0f6f40c (patch)
tree26fe85641879492fff71e8bdc9d302403b746848
parent45663041458bd76506464a5513ddf55669e42e5d (diff)
Pacman now stays facing the last way he was facing rather than returning to a circle.
Lives also redraw when a new question is loaded
-rw-r--r--dev/pacmath.activity/gameMain.py1
-rw-r--r--dev/pacmath.activity/pacmanMovement.py6
2 files changed, 3 insertions, 4 deletions
diff --git a/dev/pacmath.activity/gameMain.py b/dev/pacmath.activity/gameMain.py
index 7d890cb..72ebcff 100644
--- a/dev/pacmath.activity/gameMain.py
+++ b/dev/pacmath.activity/gameMain.py
@@ -86,6 +86,7 @@ class gameMain:
for ghost in pygame.sprite.spritecollide(self.pacman, self.correctGhosts, True):
self.score += 100
self.resetQuestion()
+ self.QandA.updateLives(self.screen, self.lives)
self.QandA.updateScore(self.screen, self.score)
return True
diff --git a/dev/pacmath.activity/pacmanMovement.py b/dev/pacmath.activity/pacmanMovement.py
index cb171a2..5c2fce3 100644
--- a/dev/pacmath.activity/pacmanMovement.py
+++ b/dev/pacmath.activity/pacmanMovement.py
@@ -55,10 +55,8 @@ class pacmanMovement(pygame.sprite.Sprite):
speed = 25
moving = self.move.getMoving()
- if moving == False:
- # Check for movement
- self.imageIndex = 4
- elif moving == True:
+
+ if moving == True:
# Check for movement
if event.type == pygame.KEYUP:
#keep going in the same direction