main.py 文件源码

python
阅读 52 收藏 0 点赞 0 评论 0

项目:Pong-py 作者: alejandrogm90 项目源码 文件源码
def load_image(filename, transparent=False):
    """Function to reurn a image object."""
    try:
        image = pygame.image.load(filename)
    except pygame.error:
        raise SystemExit
    image = image.convert()
    if transparent:
        color = image.get_at((0, 0))
        image.set_colorkey(color, RLEACCEL)
    return image
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号