Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/physics.py
diff options
context:
space:
mode:
authorBrian <brian@laptop.org>2008-07-09 20:01:44 (GMT)
committer Brian <brian@laptop.org>2008-07-09 20:01:44 (GMT)
commite39ac50ad39b9711ea96550fe845c659eb148f9d (patch)
treeb9918b8b84ce928e8ac6ca61e07b983b163f152a /physics.py
parentfb98d21389d8cc795c917cdf4cf4c967c71687ca (diff)
various cleanup... licensing/how to get involved
Diffstat (limited to 'physics.py')
-rw-r--r--physics.py33
1 files changed, 18 insertions, 15 deletions
diff --git a/physics.py b/physics.py
index 9171e81..79f4c3c 100644
--- a/physics.py
+++ b/physics.py
@@ -1,8 +1,18 @@
-#==================================================================
-# Physics.activity
-# An attempt at a Phun / Crayon Physics style physics game
-# By Alex Levenson and Brian Jordan
-#==================================================================
+#!/usr/bin/python
+"""
+This file is part of the 'Physics' Project
+Physics is a 2D Physics Playground for Kids (supporting Box2D2)
+Physics Copyright (C) 2008, Alex Levenson, Brian Jordan
+Elements Copyright (C) 2008, The Elements Team, <elements@linuxuser.at>
+
+Wiki: http://wiki.laptop.org/wiki/Physics
+IRC: #olpc-physics on irc.freenode.org
+
+Code: http://dev.laptop.org/git?p=activities/physics
+ git clone git://dev.laptop.org/activities/physics
+
+License: GPLv3 http://gplv3.fsf.org/
+"""
import sys
import math
@@ -35,11 +45,11 @@ class PhysicsGame:
}
self.currentTool = self.tools["triangle"]
- # set up the world
+ # set up the world (instance of Elements)
self.world = elements.Elements(self.screen.get_size())
self.world.renderer.set_surface(self.screen)
- # load enviornment
+ # set up static environment
self.world.add.ground()
def run(self):
@@ -71,9 +81,9 @@ class PhysicsGame:
def setTool(self,tool):
self.currentTool.cancel()
self.currentTool = self.tools[tool]
+ self.currentTool = self.tools[tool]
def main():
- # compensate for the size of the toolbar
toolbarheight = 75
pygame.init()
pygame.display.init()
@@ -88,10 +98,3 @@ def main():
if __name__ == '__main__':
main()
-
-
-
-
-
-
-