Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/physics.py
diff options
context:
space:
mode:
authornrp <olpc@spongezone.net>2008-08-31 18:20:37 (GMT)
committer nrp <olpc@spongezone.net>2008-08-31 18:20:37 (GMT)
commit621ffa66628afe5543ce6dff3d7e676e6d92ede8 (patch)
tree677d2b347f06ae6a26fcb8c1e7b115fe1b387f52 /physics.py
parentbce2e832c2664e9d5a9f8988da92e6d6f8d4f000 (diff)
parent5ccc3b13a26f23c93342f55fd6b1a6992e164c92 (diff)
Merge branch 'master' of git+ssh://physics03@dev.laptop.org/git/projects/physics03
Conflicts: bridge.py tools.py
Diffstat (limited to 'physics.py')
-rw-r--r--physics.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/physics.py b/physics.py
index 3b0431e..8b827e8 100644
--- a/physics.py
+++ b/physics.py
@@ -87,6 +87,10 @@ class PhysicsGame:
textpos = text.get_rect(left=700,top=25)
self.screen.blit(text,textpos)
+ if self.bridge.train_off_screen:
+ 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)
# Flip Display
pygame.display.flip()