18 lines
444 B
Python
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)
|