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-09-14 03:30:31 (GMT)
committer nrp <olpc@spongezone.net>2008-09-14 03:30:31 (GMT)
commit0ff169da67e21004735d902f48e077489d576c09 (patch)
tree90c12fecfbcfd9db8fee37c2dc814990f9d7806d /physics.py
parent379cccc3a7230a4c30bc0546544b8a9a0c21a7c7 (diff)
Adding text that makes slightly more sense
Diffstat (limited to 'physics.py')
-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()