From bce2e832c2664e9d5a9f8988da92e6d6f8d4f000 Mon Sep 17 00:00:00 2001 From: nrp Date: Sun, 31 Aug 2008 18:16:44 +0000 Subject: fixing the bridge error --- (limited to 'bridge.py') diff --git a/bridge.py b/bridge.py index 9d9a401..c6b4775 100644 --- a/bridge.py +++ b/bridge.py @@ -53,7 +53,7 @@ class Bridge: coord = int(self.world.meter_to_screen(vec.x)),int(780 - self.world.meter_to_screen(vec.y)) pygame.draw.circle(self.screen, (int(force/2),255-int(force/2),0), coord, 4) - def create_train(self, worldpoint = (-100,490), train = (100, 50), wheelrad = 20, cars = 3): + def create_train(self, worldpoint = (-100,490), train = (100, 50), wheelrad = 20, cars = 3, speed = -10): points = [] for i in range(0,cars): startpoint = (worldpoint[0]-(train[0]+7)*i, worldpoint[1]) -- cgit v0.9.1