surface = pygame.display.get_surface()
pos = pymunk.pygame_util.from_pygame(pos, surface)
point_info_list = self._space.point_query(
- pos, max_distance, pymunk.ShapeFilter(mask=LIGHT_CATEGORY))
+ pos, max_distance, LIT_BY_FILTER)
lights = [p.shape.body.light for p in point_info_list]
return [
light for light in lights