diff options
author | Daniel Drake <dsd@laptop.org> | 2008-08-31 18:49:11 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2008-08-31 18:49:11 (GMT) |
commit | 67729dc5eba7dfe9f386530e877f5d0f0cfd5e89 (patch) | |
tree | ae62aadb595d7a2281f82cc457e0d2692c0bf750 /physics.py | |
parent | df3cce02bb640989714dbdc2b5f2a60c29c7721b (diff) |
Detect when train falls off
Diffstat (limited to 'physics.py')
-rw-r--r-- | physics.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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() |