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

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/l/i/Little-Python-Ball-Game-HEAD/src/Death.py   Little-Python-Ball-Game(Download)
        self.world = box2d.b2World(worldAABB, self.gravity, self.doSleep)        
 
        floor_bodyDef = box2d.b2BodyDef()
        floor_bodyDef.position = (14, 8)
        floor_bodyDef.userData = self
        self.message = self.screenFont.render(text, True, (255,255,255))
 
        bodyDef = box2d.b2BodyDef()
        bodyDef.position = (8, -2)
        bodyDef.angle = -0.5

src/b/l/bloodyhell-HEAD/bloodyhell/world/actor.py   bloodyhell(Download)
from bloodyhell.world.chunk import Chunk
 
 
from Box2D import b2PolygonDef
from Box2D import b2BodyDef
        box.angle = 0
        box.restitution = 0
        body_def = b2BodyDef()
        body_def.fixedRotation = True
        body_def.position.Set(x, y)

src/b/l/bloodyhell-HEAD/bloodyhell/world/fence.py   bloodyhell(Download)
from bloodyhell.world.chunk import Chunk
 
from Box2D import b2PolygonDef
from Box2D import b2BodyDef
 
        hitbox_height = (self._hitbox.top * height / 100) * 2
        box.SetAsBox((width / 2) - hitbox_width, (height / 2) - hitbox_height)
        body_def = b2BodyDef()
        body_def.position.Set(x, y)
        self._body = world.CreateBody(body_def)