Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/m/a/marionette-0.2/marionette/collision.py   marionette(Download)
# <Insert Marionetastical limerick here>
#
from .obstacles import Obstacle
from .utils.spatial import Rect, overlaps
 
    def add(self, pos, size):
        rect = Obstacle(pos, size)
        self.objects.append(rect)
        tiles = self._calc_tiles(pos, pos, size)
        for tile in tiles: