Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/l/i/Little-Python-Ball-Game-HEAD/src/Death.py   Little-Python-Ball-Game(Download)
        worldAABB.upperBound = (30, 30)
 
        self.world = box2d.b2World(worldAABB, self.gravity, self.doSleep)        
 
        floor_bodyDef = box2d.b2BodyDef()

src/b/l/bloodyhell-HEAD/bloodyhell/world/__init__.py   bloodyhell(Download)
from bloodyhell.world.camera import Camera
 
from Box2D import b2AABB
from Box2D import b2World
from Box2D import b2Vec2
        gravity_x, gravity_y = gravity
        gravity = b2Vec2(gravity_x, gravity_y)
        self._box2d_world = b2World(worldAABB, gravity, True)
        self._contact_listener = ContactListener()
        self._box2d_world.SetContactListener(self._contact_listener)

src/l/i/Little-Python-Ball-Game-HEAD/src/Game.py   Little-Python-Ball-Game(Download)
        worldAABB.upperBound = ((screen_size[0]+50)/tile_size, (screen_size[1]+50)/tile_size)
 
        self.world = box2d.b2World(worldAABB, self.gravity, self.doSleep)
        self.listener = MyContactListener(self.engine)
        self.world.SetContactListener(self.listener)