main.py 文件源码

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

项目:veins-of-the-earth-bearlib 作者: Zireael07 项目源码 文件源码
def load_game():
    with open('savegame.json', 'r') as save_file:
        data = json.load(save_file)

    game = jsonpickle.decode(data['serialized_game'])
    player_index = jsonpickle.decode(data['serialized_player_index'])
    camera = jsonpickle.decode(data['serialized_cam'])

    player = game.level.current_entities[player_index]

    return game, player, camera


# main loop
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号