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
444 B
Python

import my_helpers.myPickle as my_pickle
from my_helpers.Config import Config
from classes.Map import Map
import lzma, os
if __name__ == '__main__':
CONFIG = Config("config.json")
game_map = Map("./Map")
game_map.make_file()
os.makedirs(CONFIG['map_file']['path'], exist_ok=True)
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)