From 07d8466f177e9a916b9b265dac4ab42db2500a0a Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Sun, 31 Aug 2008 01:27:41 +0000 Subject: start train offscreen --- diff --git a/bridge.py b/bridge.py index 8b72806..42916e7 100644 --- a/bridge.py +++ b/bridge.py @@ -9,7 +9,7 @@ class Bridge: self.cost = 0 def create_world(self): - rect = pygame.Rect((0,800), (350, -250)) + rect = pygame.Rect((-400,800), (750, -250)) rect.normalize() pygame.draw.rect(self.screen, (100,180,255), rect, 3) self.world.add.rect(rect.center, rect.width / 2, rect.height / 2, @@ -40,7 +40,7 @@ class Bridge: self.world.world.DestroyJoint(joint) self.joints.remove(joint) - def create_train(game, worldpoint = (200,490), train = (100, 50), wheelrad = 20, cars = 3): + def create_train(game, worldpoint = (-100,490), train = (100, 50), wheelrad = 20, cars = 3): points = [] for i in range(0,cars): startpoint = (worldpoint[0]-(train[0]+7)*i, worldpoint[1]) -- cgit v0.9.1