Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2008-08-31 01:27:41 (GMT)
committer Daniel Drake <dsd@laptop.org>2008-08-31 01:27:41 (GMT)
commit07d8466f177e9a916b9b265dac4ab42db2500a0a (patch)
tree6a1787045e5ee5f82f97f031a0387fe56e06489e
parent3eb6a85e142023e157517e91da54474c70bb6430 (diff)
start train offscreen
-rw-r--r--bridge.py4
1 files changed, 2 insertions, 2 deletions
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])