add create map file and remove old my_helper to change it to new submodules

This commit is contained in:
2024-04-03 12:24:17 +02:00
parent e2adacf8ba
commit 741f5da614
2 changed files with 17 additions and 85 deletions
+17
View File
@@ -0,0 +1,17 @@
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)