def to_pygame(p, surface):
    if flip_y:
        return int(p[0]), surface.get_height()-int(p[1])
    else:
        return int(p[0]), int(p[1])
Convenience method to convert pymunk coordinates to pygame surface
dataset/ETHPy150Open estevaofon/angry-birds-python/pymunk-4.0.0/pymunk/pygame_util.py/to_pygame