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)
        floor_bodyDef.userData = self
        floor_body = self.world.CreateBody(floor_bodyDef)
        floor_shapeDef = box2d.b2PolygonDef()
        floor_shapeDef.SetAsBox(16, 1)
        floor_body.CreateShape(floor_shapeDef)
        bodyDef.userData = self
        self.message_body = self.world.CreateBody(bodyDef)
        shapeDef = box2d.b2PolygonDef()
        shapeDef.density = 0.5
        shapeDef.friction = 0.95

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
    def append_to_world(self, world):
        self.world = world
        width, height = self._size
        x, y = self._position
        box = b2PolygonDef()

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
 
    def append_to_world(self, world):
        width, height = self._size
        x, y = self._position
        box = b2PolygonDef()
        hitbox_width = (self._hitbox.left * width / 100) * 2