Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bridge.py
diff options
context:
space:
mode:
Diffstat (limited to 'bridge.py')
-rw-r--r--bridge.py2
1 files changed, 1 insertions, 1 deletions
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])