This repository has been archived on 2026-06-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
The-Adventure-Game/make_map_file.py
T

18 lines
412 B
Python

import my_helpers.myPickle as my_pickle
from classes.Map import Map
from json import load as json_load
import lzma
if __name__ == '__main__':
with open("config.json", "r") as f:
CONFIG = json_load(f)
game_map = Map("./Map")
game_map.make_file()
with open(f"{CONFIG['map_file']['path']}/{CONFIG['map_file']['filename']}", "wb") as f:
my_pickle.dump(game_map, f, lzma)
print(game_map.story)