diff options
author | Brian Jordan <bcjordan@gmail.com> | 2009-07-10 13:04:31 (GMT) |
---|---|---|
committer | Brian Jordan <bcjordan@gmail.com> | 2009-07-10 13:04:31 (GMT) |
commit | da351cb11c9cc0a36492c9f50fa993afb4465c3b (patch) | |
tree | fb73b22dc4eedd6a366d9dc02744c81c2746deff /physics.py | |
parent | f5b6eebb765e30f50e2f922a292adaac08f61561 (diff) |
Upgraded to elements 12, pybox2d 2.0.2b1
Diffstat (limited to 'physics.py')
-rw-r--r-- | physics.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -20,11 +20,14 @@ import pygame from pygame.locals import * from pygame.color import * import olpcgames +sys.path.append("lib/Elements-0.12-py2.5.egg") +sys.path.append("lib/Box2D-2.0.2b1-py2.5-linux-i686.egg") +import Box2D as box2d import elements -from elements import Elements import tools from helpers import * + class PhysicsGame: def __init__(self,screen): self.screen = screen @@ -37,8 +40,8 @@ class PhysicsGame: for c in tools.allTools: self.toolList[c.name] = c(self) self.currentTool = self.toolList[tools.allTools[0].name] - # set up the world (instance of Elements) + self.box2d = box2d self.world = elements.Elements(self.screen.get_size()) self.world.renderer.set_surface(self.screen) |