Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--physics.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/physics.py b/physics.py
index 6108a99..267979f 100644
--- a/physics.py
+++ b/physics.py
@@ -80,21 +80,21 @@ class PhysicsGame:
#Print all the text on the screen
text = self.font.render("Total Cost: %d" % self.bridge.cost, True, (0,0,0))
- textpos = text.get_rect(left=700,top=7)
+ textpos = text.get_rect(left=100,top=7)
self.screen.blit(text,textpos)
ratio = self.bridge.stress*100/self.bridge.capacity
text = self.font.render("Stress: %d%%" % ratio, True, (0,0,0))
- textpos = text.get_rect(left=700,top=25)
+ textpos = text.get_rect(left=100,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)
+ text = self.font.render("Train fell off the screen, press R to try again!", True, (0,0,0))
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)
+ text = self.font.render("Level completed, well done!! Press T to send another train.", True, (0,0,0))
+ else:
+ text = self.font.render("Press the Spacebar to start/pause.", True, (0,0,0))
+ textpos = text.get_rect(left=100,top=43)
+ self.screen.blit(text,textpos)
# Flip Display
pygame.display.flip()