From e39ac50ad39b9711ea96550fe845c659eb148f9d Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 09 Jul 2008 20:01:44 +0000 Subject: various cleanup... licensing/how to get involved --- (limited to 'physics.py') 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, + +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() - - - - - - - -- cgit v0.9.1