diff options
author | Anish Mangal <anish@sugarlabs.org> | 2011-02-22 22:56:40 (GMT) |
---|---|---|
committer | Anish Mangal <anish@sugarlabs.org> | 2011-02-22 22:59:20 (GMT) |
commit | ef3edc36c1a1c06f19823bc7b99a880c48675dfa (patch) | |
tree | e386bac518eaee9b36141aee289a08ce69452e8e /data/graphics/physics | |
parent | d29d28ba5390048d5b170cc9ca410bab50012ea8 (diff) |
pep8 and pylint fixes for examples
Diffstat (limited to 'data/graphics/physics')
-rw-r--r-- | data/graphics/physics | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/data/graphics/physics b/data/graphics/physics index fbc336c..3d57a06 100644 --- a/data/graphics/physics +++ b/data/graphics/physics @@ -1,6 +1,9 @@ # physics -import pippy, pygame, sys, math +import pippy +import pygame +import sys +import math from pygame.locals import * from pippy import physics @@ -14,13 +17,13 @@ world.renderer.set_surface(screen) # set up initial physics objects world.add.ground() -world.add.ball((600,0), 50) -world.add.rect((500,0), 25, 300, dynamic=True, density=1.0, restitution=0.16, friction=0.5) +world.add.ball((600, 0), 50) +world.add.rect((500, 0), 25, 300, dynamic=True, density=1.0, restitution=0.16, friction=0.5) # add 20 more balls balls = 0 while(balls < 20): - world.add.ball((balls*5+200, balls*5), 50) + world.add.ball(((balls * 5) + 200, balls * 5), 50) balls += 1 # begin physics simulation |