-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3624a0b
commit fc46794
Showing
3 changed files
with
352 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,332 @@ | ||
[ | ||
{ | ||
"name": "終界大廳-end hub", | ||
"desc": null, | ||
"dim": 1, | ||
"pos": { | ||
"x": 0.4926650907535208, | ||
"y": 59.5, | ||
"z": -6.770197912234607 | ||
} | ||
}, | ||
{ | ||
"name": "編碼虛空交易-Void Traiding ", | ||
"desc": null, | ||
"dim": 1, | ||
"pos": { | ||
"x": 1093.455772597608, | ||
"y": 76.0, | ||
"z": 3.1910042273348718 | ||
} | ||
}, | ||
{ | ||
"name": "月宮-Moon's palace", | ||
"desc": null, | ||
"dim": 1, | ||
"pos": { | ||
"x": -46.90185248924534, | ||
"y": 82.0, | ||
"z": 505.6626146055271 | ||
} | ||
}, | ||
{ | ||
"name": "終界農業中心", | ||
"desc": null, | ||
"dim": 1, | ||
"pos": { | ||
"x": 167.06481513353407, | ||
"y": 49.0625, | ||
"z": 700.6425184994407 | ||
} | ||
}, | ||
{ | ||
"name": "一堆地圖繪-map art", | ||
"desc": null, | ||
"dim": 1, | ||
"pos": { | ||
"x": 246.9934049108337, | ||
"y": 60.0, | ||
"z": -332.3521509892386 | ||
} | ||
}, | ||
{ | ||
"name": "冰船賽道-ice race", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": -155.89924911582483, | ||
"y": 128.0, | ||
"z": -950.9098038532622 | ||
} | ||
}, | ||
{ | ||
"name": "天使的秘密-CTEC_Garden", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": 406.7050264979761, | ||
"y": 109.62054454094732, | ||
"z": 287.2113379648316 | ||
} | ||
}, | ||
{ | ||
"name": "紫水晶農場-amethyst_farm", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": 230.33034702721395, | ||
"y": 111.1143886041355, | ||
"z": 336.2654457617996 | ||
} | ||
}, | ||
{ | ||
"name": "1k空置域-1k_peri", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": 199.6681255518014, | ||
"y": 109.61983050058708, | ||
"z": 341.4456449201105 | ||
} | ||
}, | ||
{ | ||
"name": "鐵人塔收集-iron_farm_storage", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": 207.0009929582371, | ||
"y": 111.13057156496916, | ||
"z": 226.6877925394172 | ||
} | ||
}, | ||
{ | ||
"name": "白上空置域-hand_dig_peri", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": 131.09792796705773, | ||
"y": 111.16343262405373, | ||
"z": 187.95139065106312 | ||
} | ||
}, | ||
{ | ||
"name": "史萊姆農場-slime_farm", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": 180.78054556366118, | ||
"y": 111.14965547139879, | ||
"z": 171.82144159801302 | ||
} | ||
}, | ||
{ | ||
"name": "512寬採礦機-512quarry", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": 1780.852252696575, | ||
"y": 111.15050584018537, | ||
"z": 23.242430640395877 | ||
} | ||
}, | ||
{ | ||
"name": "鞘翅炮-elytra_cannon", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": 262.75002268309225, | ||
"y": 130.10786615998342, | ||
"z": -231.4968181103359 | ||
} | ||
}, | ||
{ | ||
"name": "hafnium4家", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": 275.7423925411611, | ||
"y": 110.9188214381562, | ||
"z": -243.459729361591 | ||
} | ||
}, | ||
{ | ||
"name": "eol", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": 94.3136970245932, | ||
"y": 112.02714283294365, | ||
"z": -212.8280461539662 | ||
} | ||
}, | ||
{ | ||
"name": "出生點-spawn", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": -14.34577766053682, | ||
"y": 111.6628206576326, | ||
"z": 26.602698220146163 | ||
} | ||
}, | ||
{ | ||
"name": "四連海貨塔-guardian_farm", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": -62.275157491890916, | ||
"y": 111.6628206576326, | ||
"z": -182.33619354372888 | ||
} | ||
}, | ||
{ | ||
"name": "帕拉迪島-PLD_island", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": -68.26402827401256, | ||
"y": 111.6628206576326, | ||
"z": 250.6022937390444 | ||
} | ||
}, | ||
{ | ||
"name": "192k刷沙機-192k_concrete_duper", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": -69.78033673765114, | ||
"y": 111.6628206576326, | ||
"z": 276.07085500037556 | ||
} | ||
}, | ||
{ | ||
"name": "蚌場-shulker_farm", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": -101.02550704343659, | ||
"y": 111.69170369884193, | ||
"z": 2.624714694244113 | ||
} | ||
}, | ||
{ | ||
"name": "蘑菇牛農場-mooshroom_farm", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": -104.94125438333707, | ||
"y": 111.69170369884193, | ||
"z": -94.0971149747333 | ||
} | ||
}, | ||
{ | ||
"name": "襲擊塔-raid_farm", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": -157.48348465542182, | ||
"y": 111.69170369884193, | ||
"z": 11.153994646668524 | ||
} | ||
}, | ||
{ | ||
"name": "72k刷冰機-72k_ice_farm", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": -266.4950938892183, | ||
"y": 111.69170369884193, | ||
"z": 13.419158668343965 | ||
} | ||
}, | ||
{ | ||
"name": "曬銅機-copper_oxidizer", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": -180.57476952101206, | ||
"y": 129.67151227520247, | ||
"z": 149.84220594167664 | ||
} | ||
}, | ||
{ | ||
"name": "煉銅-copper_farm", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": -180.01796125268658, | ||
"y": 129.66643424373186, | ||
"z": 94.733070472392 | ||
} | ||
}, | ||
{ | ||
"name": "雲妹手挖空置域-YunMei_dig_peri", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": 120.41554985500206, | ||
"y": 165.67202608119788, | ||
"z": 18.124396256816564 | ||
} | ||
}, | ||
{ | ||
"name": "冰船賽道-ice_boat_race", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": -154.55327632315047, | ||
"y": 129.59459295421848, | ||
"z": -952.2965819995491 | ||
} | ||
}, | ||
{ | ||
"name": "全物品-MS", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": 256.73283546050186, | ||
"y": 166.01913555253978, | ||
"z": -24.06177097225663 | ||
} | ||
}, | ||
{ | ||
"name": "工業區-industrial_area", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": 303.29158735688407, | ||
"y": 165.888389736455, | ||
"z": 22.790856520451342 | ||
} | ||
}, | ||
{ | ||
"name": "主世界豬人塔-EXP_farm", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": 266.17392328335495, | ||
"y": 165.6329369590083, | ||
"z": -59.55939732727418 | ||
} | ||
}, | ||
{ | ||
"name": "生物館-mob_museum", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": 198.44876644013107, | ||
"y": 166.61120162697551, | ||
"z": 19.617422471138823 | ||
} | ||
}, | ||
{ | ||
"name": "成員禮拜堂-member_hall", | ||
"desc": null, | ||
"dim": -1, | ||
"pos": { | ||
"x": 15.15297028622404, | ||
"y": 128.0, | ||
"z": -243.23795842773836 | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import json | ||
from PIL import Image, ImageDraw, ImageFont | ||
|
||
with open("./data/survival.json","r",encoding="utf-8") as file: | ||
data = [{"name":i["name"],"pos":i["pos"]} for i in json.load(file) if i["dim"] == -1] | ||
center = next((point["pos"] for point in data if "大廳" in point["name"]), {"x":0,"y":0,"z":0}) | ||
|
||
map_max_point = max([max(abs(point["pos"]["x"]),abs(point["pos"]["z"])) for point in data]) | ||
print(map_max_point) | ||
|
||
img = Image.new("RGB",(int(map_max_point*2),int(map_max_point*2)),(255,255,255)) | ||
draw = ImageDraw.Draw(img) | ||
|
||
for point in data: | ||
x = point["pos"]["x"] + map_max_point | ||
y = point["pos"]["z"] + map_max_point | ||
draw.ellipse((x-2,y-2,x+2,y+2),(0,255,0)) | ||
draw.text((x+3,y+3),point["name"],(0,0,255)) | ||
|
||
img.show() |
File renamed without changes.