categories=TURNIP_CATEGORY)
-def check_turnips(space, pos, max_distance):
- point_info = space.point_query_nearest(
- pos, max_distance, pymunk.ShapeFilter(mask=TURNIP_CATEGORY))
- if point_info is not None:
- return True
- return False
-
-
class TurnipInvalidPosition(Exception):
pass