def hit(self, x, y):
        for sprite in self.sprites:
            if sprite.contains(x, y):
                return sprite
        return None
See whether there's a Sprite at the pixel location
dataset/ETHPy150Open ardekantur/pyglet/contrib/spryte/spryte.py/SpriteBatch.hit