Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/physics.py
diff options
context:
space:
mode:
Diffstat (limited to 'physics.py')
-rw-r--r--physics.py8
1 files changed, 4 insertions, 4 deletions
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()