From 621ffa66628afe5543ce6dff3d7e676e6d92ede8 Mon Sep 17 00:00:00 2001 From: nrp Date: Sun, 31 Aug 2008 18:20:37 +0000 Subject: Merge branch 'master' of git+ssh://physics03@dev.laptop.org/git/projects/physics03 Conflicts: bridge.py tools.py --- (limited to 'physics.py') 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() -- cgit v0.9.1