diff options
author | Brian <brian@laptop.org> | 2008-07-15 15:03:44 (GMT) |
---|---|---|
committer | Brian <brian@laptop.org> | 2008-07-15 15:03:44 (GMT) |
commit | 86439036069b5e35c8dc89235f95631e0a382494 (patch) | |
tree | 7334778ab151ad52a6eefe3ca08ab5e7cdccc1dc /physics.py | |
parent | 61c885730ad359bcfbaeea493dfd6f5d53dd814f (diff) |
Changed background color ... needs to be made option
Diffstat (limited to 'physics.py')
-rw-r--r-- | physics.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -32,7 +32,7 @@ class PhysicsGame: self.clock = pygame.time.Clock() self.font = pygame.font.Font(None, 24) # font object self.canvas = olpcgames.ACTIVITY.canvas - + # setup tools self.tools = { "triangle": TriangleTool(self), @@ -49,17 +49,17 @@ class PhysicsGame: # set up the world (instance of Elements) self.world = elements.Elements(self.screen.get_size()) self.world.renderer.set_surface(self.screen) - + # set up static environment self.world.add.ground() - + def run(self): self.running = True while self.running: for event in pygame.event.get(): self.currentTool.handleEvents(event) # Clear Display - self.screen.fill((255,255,255)) + self.screen.fill((0,0,0)) #255 for white # Update & Draw World self.world.update() |