Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bridge.py
diff options
context:
space:
mode:
authornrp <olpc@spongezone.net>2008-08-30 20:00:41 (GMT)
committer nrp <olpc@spongezone.net>2008-08-30 20:00:41 (GMT)
commitfe127df90bc7314271581d4fa5a0ea574a97d8f6 (patch)
tree1b17856d45a13c7bc63d5ca3807de20019ad9ef3 /bridge.py
parent660af3c56e66baa89d6078511af5f0bffbab5b93 (diff)
parent53489a7c53e90e1c31a06877549bd8e2fb052685 (diff)
Merge branch 'master' of git://dev.laptop.org/projects/physics03
Diffstat (limited to 'bridge.py')
-rw-r--r--bridge.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/bridge.py b/bridge.py
new file mode 100644
index 0000000..76daffc
--- /dev/null
+++ b/bridge.py
@@ -0,0 +1,14 @@
+import pygame
+
+def create_world(game):
+ rect = pygame.Rect((0,800), (350, -250))
+ rect.normalize()
+ pygame.draw.rect(game.screen, (100,180,255), rect, 3)
+ game.world.add.rect(rect.center, rect.width / 2, rect.height / 2,
+ dynamic=False)
+ rect = pygame.Rect((1200,800), (-350, -250))
+ rect.normalize()
+ pygame.draw.rect(game.screen, (100,180,255), rect, 3)
+ game.world.add.rect(rect.center, rect.width / 2, rect.height / 2,
+ dynamic=False)
+