This commit is contained in:
shiva404
2026-02-13 23:34:24 +03:00
commit d7184ddab1
18 changed files with 1164 additions and 0 deletions

19
res/maps/map_editor.py Normal file
View File

@@ -0,0 +1,19 @@
import json
from copy import deepcopy
width = 10
height = 8
grass_def = {"id": "1", "name": "2", "sprite": "grass_small.png"}
cell_def = {"type": "Ground", "cell": {"terrain_obj": grass_def, "creature_obj": {}, "item_obj": {}}}
out = {}
for i in range(0, height):
buff = []
for j in range(0, width):
buff.append(deepcopy(cell_def))
out[i] = buff
with open("def_map.json", "w") as file:
json.dump(out, file, indent = 4)