From 901a8a638a92b2138b6ce27dd7e90b3b3b4d1833 Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Sun, 31 Aug 2008 00:13:09 +0000 Subject: add concept of cost --- (limited to 'physics.py') diff --git a/physics.py b/physics.py index b2ca2cb..ef9b2b9 100644 --- a/physics.py +++ b/physics.py @@ -71,7 +71,7 @@ class PhysicsGame: self.currentTool.draw() #Print all the text on the screen - text = self.font.render("Current Tool: "+self.currentTool.name, True, (255,255,255)) + text = self.font.render("Total Cost: %d" % self.bridge.cost, True, (0,0,0)) textpos = text.get_rect(left=700,top=7) self.screen.blit(text,textpos) -- cgit v0.9.1