oldalien.py 文件源码

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

项目:Projects 作者: it2school 项目源码 文件源码
def load_image(file, transparent):
    "loads an image, prepares it for play"
    file = os.path.join(main_dir, 'data', file)
    try:
        surface = pygame.image.load(file)
    except pygame.error:
        raise SystemExit('Could not load image "%s" %s' %
                         (file, pygame.get_error()))
    if transparent:
        corner = surface.get_at((0, 0))
        surface.set_colorkey(corner, RLEACCEL)
    return surface.convert()



# The logic for all the different sprite types
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号