Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/physics.py
diff options
context:
space:
mode:
authornrp <olpc@spongezone.net>2008-08-31 00:05:38 (GMT)
committer nrp <olpc@spongezone.net>2008-08-31 00:05:38 (GMT)
commit94ee6292b6213d14634006769bbd2f6b90ea4ea4 (patch)
tree95857f5f3049c396056f56c8c71278f061a6fed4 /physics.py
parentfe127df90bc7314271581d4fa5a0ea574a97d8f6 (diff)
adding train
Diffstat (limited to 'physics.py')
-rw-r--r--physics.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/physics.py b/physics.py
index 6d9fb78..f2e38f5 100644
--- a/physics.py
+++ b/physics.py
@@ -49,10 +49,16 @@ class PhysicsGame:
self.world.add.ground()
bridge.create_world(self)
+ bridge.create_train(self)
def run(self):
- self.running = True
+ self.running = True
+ t = pygame.time.get_ticks()
while self.running:
+ if (pygame.time.get_ticks() - t) > 1500:
+# bridge.create_train(self)
+ t = pygame.time.get_ticks()
+
for event in pygame.event.get():
self.currentTool.handleEvents(event)
# Clear Display