From 86439036069b5e35c8dc89235f95631e0a382494 Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 15 Jul 2008 15:03:44 +0000 Subject: Changed background color ... needs to be made option --- (limited to 'physics.py') diff --git a/physics.py b/physics.py index 7107195..5f3c9d6 100644 --- a/physics.py +++ b/physics.py @@ -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() -- cgit v0.9.1