Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/physics.py
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2008-08-31 19:16:46 (GMT)
committer Daniel Drake <dsd@laptop.org>2008-08-31 19:19:55 (GMT)
commite96abf6926e8ccae5fbab81edddd2b4e9aec7b34 (patch)
tree145e129fc4b3748785df9ef627f58d2ddd1ce459 /physics.py
parent621ffa66628afe5543ce6dff3d7e676e6d92ede8 (diff)
detect when level is complete
Diffstat (limited to 'physics.py')
-rw-r--r--physics.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/physics.py b/physics.py
index 8b827e8..6108a99 100644
--- a/physics.py
+++ b/physics.py
@@ -91,7 +91,11 @@ class PhysicsGame:
text = self.font.render("Train fell off the screen, try again!", True, (0,0,0))
textpos = text.get_rect(left=700,top=43)
self.screen.blit(text,textpos)
-
+ elif self.bridge.level_completed:
+ text = self.font.render("Level completed, well done!!", True, (0,0,0))
+ textpos = text.get_rect(left=700,top=43)
+ self.screen.blit(text,textpos)
+
# Flip Display
pygame.display.flip()