Add map tiles from draconic
@ -4,7 +4,7 @@ import argparse
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
ap = argparse.ArgumentParser()
|
ap = argparse.ArgumentParser()
|
||||||
ap.add_argument("type", type=str, help="Type of the map", choices=["surface", "caves"])
|
ap.add_argument("type", type=str, help="Type of the map", choices=["surface", "caves", "draconic-surface"])
|
||||||
args = ap.parse_args()
|
args = ap.parse_args()
|
||||||
|
|
||||||
TILES_DIR = Path(__file__).parent / "tiles" / args.type
|
TILES_DIR = Path(__file__).parent / "tiles" / args.type
|
||||||
|
@ -2,29 +2,157 @@
|
|||||||
const TILE_SIZE = 1024;
|
const TILE_SIZE = 1024;
|
||||||
const TILES = {
|
const TILES = {
|
||||||
surface: [
|
surface: [
|
||||||
{ "chunk_x": 0, "chunk_z": 4, "x": -4096, "z": -512, "image": "0_4_x-4096_z-512.png" },
|
{ "chunk_x": 0, "chunk_z": 0, "x": -761856, "z": -329216, "image": "0_0_x-761856_z-329216.png" },
|
||||||
{ "chunk_x": 1, "chunk_z": 1, "x": -3072, "z": -3584, "image": "1_1_x-3072_z-3584.png" },
|
{ "chunk_x": 595, "chunk_z": 205, "x": -152576, "z": -119296, "image": "595_205_x-152576_z-119296.png" },
|
||||||
{ "chunk_x": 1, "chunk_z": 2, "x": -3072, "z": -2560, "image": "1_2_x-3072_z-2560.png" },
|
{ "chunk_x": 663, "chunk_z": 284, "x": -82944, "z": -38400, "image": "663_284_x-82944_z-38400.png" },
|
||||||
{ "chunk_x": 1, "chunk_z": 3, "x": -3072, "z": -1536, "image": "1_3_x-3072_z-1536.png" },
|
{ "chunk_x": 664, "chunk_z": 284, "x": -81920, "z": -38400, "image": "664_284_x-81920_z-38400.png" },
|
||||||
{ "chunk_x": 1, "chunk_z": 4, "x": -3072, "z": -512, "image": "1_4_x-3072_z-512.png" },
|
{ "chunk_x": 665, "chunk_z": 285, "x": -80896, "z": -37376, "image": "665_285_x-80896_z-37376.png" },
|
||||||
{ "chunk_x": 2, "chunk_z": 0, "x": -2048, "z": -4608, "image": "2_0_x-2048_z-4608.png" },
|
{ "chunk_x": 666, "chunk_z": 284, "x": -79872, "z": -38400, "image": "666_284_x-79872_z-38400.png" },
|
||||||
{ "chunk_x": 2, "chunk_z": 1, "x": -2048, "z": -3584, "image": "2_1_x-2048_z-3584.png" },
|
{ "chunk_x": 666, "chunk_z": 285, "x": -79872, "z": -37376, "image": "666_285_x-79872_z-37376.png" },
|
||||||
{ "chunk_x": 2, "chunk_z": 2, "x": -2048, "z": -2560, "image": "2_2_x-2048_z-2560.png" },
|
{ "chunk_x": 667, "chunk_z": 284, "x": -78848, "z": -38400, "image": "667_284_x-78848_z-38400.png" },
|
||||||
{ "chunk_x": 2, "chunk_z": 3, "x": -2048, "z": -1536, "image": "2_3_x-2048_z-1536.png" },
|
{ "chunk_x": 667, "chunk_z": 285, "x": -78848, "z": -37376, "image": "667_285_x-78848_z-37376.png" },
|
||||||
{ "chunk_x": 2, "chunk_z": 4, "x": -2048, "z": -512, "image": "2_4_x-2048_z-512.png" },
|
{ "chunk_x": 729, "chunk_z": 323, "x": -15360, "z": 1536, "image": "729_323_x-15360_z1536.png" },
|
||||||
{ "chunk_x": 2, "chunk_z": 5, "x": -2048, "z": 512, "image": "2_5_x-2048_z512.png" },
|
{ "chunk_x": 733, "chunk_z": 311, "x": -11264, "z": -10752, "image": "733_311_x-11264_z-10752.png" },
|
||||||
{ "chunk_x": 3, "chunk_z": 0, "x": -1024, "z": -4608, "image": "3_0_x-1024_z-4608.png" },
|
{ "chunk_x": 733, "chunk_z": 314, "x": -11264, "z": -7680, "image": "733_314_x-11264_z-7680.png" },
|
||||||
{ "chunk_x": 3, "chunk_z": 1, "x": -1024, "z": -3584, "image": "3_1_x-1024_z-3584.png" },
|
{ "chunk_x": 734, "chunk_z": 314, "x": -10240, "z": -7680, "image": "734_314_x-10240_z-7680.png" },
|
||||||
{ "chunk_x": 3, "chunk_z": 2, "x": -1024, "z": -2560, "image": "3_2_x-1024_z-2560.png" },
|
{ "chunk_x": 734, "chunk_z": 321, "x": -10240, "z": -512, "image": "734_321_x-10240_z-512.png" },
|
||||||
{ "chunk_x": 3, "chunk_z": 3, "x": -1024, "z": -1536, "image": "3_3_x-1024_z-1536.png" },
|
{ "chunk_x": 735, "chunk_z": 321, "x": -9216, "z": -512, "image": "735_321_x-9216_z-512.png" },
|
||||||
{ "chunk_x": 3, "chunk_z": 4, "x": -1024, "z": -512, "image": "3_4_x-1024_z-512.png" },
|
{ "chunk_x": 736, "chunk_z": 321, "x": -8192, "z": -512, "image": "736_321_x-8192_z-512.png" },
|
||||||
{ "chunk_x": 3, "chunk_z": 5, "x": -1024, "z": 512, "image": "3_5_x-1024_z512.png" },
|
{ "chunk_x": 737, "chunk_z": 321, "x": -7168, "z": -512, "image": "737_321_x-7168_z-512.png" },
|
||||||
{ "chunk_x": 4, "chunk_z": 2, "x": 0, "z": -2560, "image": "4_2_x0_z-2560.png" },
|
{ "chunk_x": 738, "chunk_z": 318, "x": -6144, "z": -3584, "image": "738_318_x-6144_z-3584.png" },
|
||||||
{ "chunk_x": 4, "chunk_z": 3, "x": 0, "z": -1536, "image": "4_3_x0_z-1536.png" },
|
{ "chunk_x": 738, "chunk_z": 319, "x": -6144, "z": -2560, "image": "738_319_x-6144_z-2560.png" },
|
||||||
{ "chunk_x": 4, "chunk_z": 4, "x": 0, "z": -512, "image": "4_4_x0_z-512.png" },
|
{ "chunk_x": 738, "chunk_z": 321, "x": -6144, "z": -512, "image": "738_321_x-6144_z-512.png" },
|
||||||
{ "chunk_x": 4, "chunk_z": 5, "x": 0, "z": 512, "image": "4_5_x0_z512.png" },
|
{ "chunk_x": 738, "chunk_z": 322, "x": -6144, "z": 512, "image": "738_322_x-6144_z512.png" },
|
||||||
{ "chunk_x": 5, "chunk_z": 4, "x": 1024, "z": -512, "image": "5_4_x1024_z-512.png" },
|
{ "chunk_x": 739, "chunk_z": 318, "x": -5120, "z": -3584, "image": "739_318_x-5120_z-3584.png" },
|
||||||
{ "chunk_x": 5, "chunk_z": 5, "x": 1024, "z": 512, "image": "5_5_x1024_z512.png" }
|
{ "chunk_x": 739, "chunk_z": 319, "x": -5120, "z": -2560, "image": "739_319_x-5120_z-2560.png" },
|
||||||
|
{ "chunk_x": 739, "chunk_z": 320, "x": -5120, "z": -1536, "image": "739_320_x-5120_z-1536.png" },
|
||||||
|
{ "chunk_x": 739, "chunk_z": 321, "x": -5120, "z": -512, "image": "739_321_x-5120_z-512.png" },
|
||||||
|
{ "chunk_x": 739, "chunk_z": 322, "x": -5120, "z": 512, "image": "739_322_x-5120_z512.png" },
|
||||||
|
{ "chunk_x": 740, "chunk_z": 316, "x": -4096, "z": -5632, "image": "740_316_x-4096_z-5632.png" },
|
||||||
|
{ "chunk_x": 740, "chunk_z": 317, "x": -4096, "z": -4608, "image": "740_317_x-4096_z-4608.png" },
|
||||||
|
{ "chunk_x": 740, "chunk_z": 320, "x": -4096, "z": -1536, "image": "740_320_x-4096_z-1536.png" },
|
||||||
|
{ "chunk_x": 740, "chunk_z": 321, "x": -4096, "z": -512, "image": "740_321_x-4096_z-512.png" },
|
||||||
|
{ "chunk_x": 740, "chunk_z": 322, "x": -4096, "z": 512, "image": "740_322_x-4096_z512.png" },
|
||||||
|
{ "chunk_x": 741, "chunk_z": 316, "x": -3072, "z": -5632, "image": "741_316_x-3072_z-5632.png" },
|
||||||
|
{ "chunk_x": 741, "chunk_z": 317, "x": -3072, "z": -4608, "image": "741_317_x-3072_z-4608.png" },
|
||||||
|
{ "chunk_x": 741, "chunk_z": 318, "x": -3072, "z": -3584, "image": "741_318_x-3072_z-3584.png" },
|
||||||
|
{ "chunk_x": 741, "chunk_z": 319, "x": -3072, "z": -2560, "image": "741_319_x-3072_z-2560.png" },
|
||||||
|
{ "chunk_x": 741, "chunk_z": 320, "x": -3072, "z": -1536, "image": "741_320_x-3072_z-1536.png" },
|
||||||
|
{ "chunk_x": 741, "chunk_z": 321, "x": -3072, "z": -512, "image": "741_321_x-3072_z-512.png" },
|
||||||
|
{ "chunk_x": 741, "chunk_z": 322, "x": -3072, "z": 512, "image": "741_322_x-3072_z512.png" },
|
||||||
|
{ "chunk_x": 742, "chunk_z": 311, "x": -2048, "z": -10752, "image": "742_311_x-2048_z-10752.png" },
|
||||||
|
{ "chunk_x": 742, "chunk_z": 312, "x": -2048, "z": -9728, "image": "742_312_x-2048_z-9728.png" },
|
||||||
|
{ "chunk_x": 742, "chunk_z": 313, "x": -2048, "z": -8704, "image": "742_313_x-2048_z-8704.png" },
|
||||||
|
{ "chunk_x": 742, "chunk_z": 314, "x": -2048, "z": -7680, "image": "742_314_x-2048_z-7680.png" },
|
||||||
|
{ "chunk_x": 742, "chunk_z": 315, "x": -2048, "z": -6656, "image": "742_315_x-2048_z-6656.png" },
|
||||||
|
{ "chunk_x": 742, "chunk_z": 316, "x": -2048, "z": -5632, "image": "742_316_x-2048_z-5632.png" },
|
||||||
|
{ "chunk_x": 742, "chunk_z": 317, "x": -2048, "z": -4608, "image": "742_317_x-2048_z-4608.png" },
|
||||||
|
{ "chunk_x": 742, "chunk_z": 318, "x": -2048, "z": -3584, "image": "742_318_x-2048_z-3584.png" },
|
||||||
|
{ "chunk_x": 742, "chunk_z": 319, "x": -2048, "z": -2560, "image": "742_319_x-2048_z-2560.png" },
|
||||||
|
{ "chunk_x": 742, "chunk_z": 320, "x": -2048, "z": -1536, "image": "742_320_x-2048_z-1536.png" },
|
||||||
|
{ "chunk_x": 742, "chunk_z": 321, "x": -2048, "z": -512, "image": "742_321_x-2048_z-512.png" },
|
||||||
|
{ "chunk_x": 742, "chunk_z": 322, "x": -2048, "z": 512, "image": "742_322_x-2048_z512.png" },
|
||||||
|
{ "chunk_x": 742, "chunk_z": 323, "x": -2048, "z": 1536, "image": "742_323_x-2048_z1536.png" },
|
||||||
|
{ "chunk_x": 743, "chunk_z": 311, "x": -1024, "z": -10752, "image": "743_311_x-1024_z-10752.png" },
|
||||||
|
{ "chunk_x": 743, "chunk_z": 312, "x": -1024, "z": -9728, "image": "743_312_x-1024_z-9728.png" },
|
||||||
|
{ "chunk_x": 743, "chunk_z": 313, "x": -1024, "z": -8704, "image": "743_313_x-1024_z-8704.png" },
|
||||||
|
{ "chunk_x": 743, "chunk_z": 314, "x": -1024, "z": -7680, "image": "743_314_x-1024_z-7680.png" },
|
||||||
|
{ "chunk_x": 743, "chunk_z": 315, "x": -1024, "z": -6656, "image": "743_315_x-1024_z-6656.png" },
|
||||||
|
{ "chunk_x": 743, "chunk_z": 316, "x": -1024, "z": -5632, "image": "743_316_x-1024_z-5632.png" },
|
||||||
|
{ "chunk_x": 743, "chunk_z": 317, "x": -1024, "z": -4608, "image": "743_317_x-1024_z-4608.png" },
|
||||||
|
{ "chunk_x": 743, "chunk_z": 318, "x": -1024, "z": -3584, "image": "743_318_x-1024_z-3584.png" },
|
||||||
|
{ "chunk_x": 743, "chunk_z": 319, "x": -1024, "z": -2560, "image": "743_319_x-1024_z-2560.png" },
|
||||||
|
{ "chunk_x": 743, "chunk_z": 320, "x": -1024, "z": -1536, "image": "743_320_x-1024_z-1536.png" },
|
||||||
|
{ "chunk_x": 743, "chunk_z": 321, "x": -1024, "z": -512, "image": "743_321_x-1024_z-512.png" },
|
||||||
|
{ "chunk_x": 743, "chunk_z": 322, "x": -1024, "z": 512, "image": "743_322_x-1024_z512.png" },
|
||||||
|
{ "chunk_x": 743, "chunk_z": 323, "x": -1024, "z": 1536, "image": "743_323_x-1024_z1536.png" },
|
||||||
|
{ "chunk_x": 743, "chunk_z": 324, "x": -1024, "z": 2560, "image": "743_324_x-1024_z2560.png" },
|
||||||
|
{ "chunk_x": 744, "chunk_z": 311, "x": 0, "z": -10752, "image": "744_311_x0_z-10752.png" },
|
||||||
|
{ "chunk_x": 744, "chunk_z": 312, "x": 0, "z": -9728, "image": "744_312_x0_z-9728.png" },
|
||||||
|
{ "chunk_x": 744, "chunk_z": 313, "x": 0, "z": -8704, "image": "744_313_x0_z-8704.png" },
|
||||||
|
{ "chunk_x": 744, "chunk_z": 314, "x": 0, "z": -7680, "image": "744_314_x0_z-7680.png" },
|
||||||
|
{ "chunk_x": 744, "chunk_z": 315, "x": 0, "z": -6656, "image": "744_315_x0_z-6656.png" },
|
||||||
|
{ "chunk_x": 744, "chunk_z": 316, "x": 0, "z": -5632, "image": "744_316_x0_z-5632.png" },
|
||||||
|
{ "chunk_x": 744, "chunk_z": 317, "x": 0, "z": -4608, "image": "744_317_x0_z-4608.png" },
|
||||||
|
{ "chunk_x": 744, "chunk_z": 318, "x": 0, "z": -3584, "image": "744_318_x0_z-3584.png" },
|
||||||
|
{ "chunk_x": 744, "chunk_z": 319, "x": 0, "z": -2560, "image": "744_319_x0_z-2560.png" },
|
||||||
|
{ "chunk_x": 744, "chunk_z": 320, "x": 0, "z": -1536, "image": "744_320_x0_z-1536.png" },
|
||||||
|
{ "chunk_x": 744, "chunk_z": 321, "x": 0, "z": -512, "image": "744_321_x0_z-512.png" },
|
||||||
|
{ "chunk_x": 744, "chunk_z": 322, "x": 0, "z": 512, "image": "744_322_x0_z512.png" },
|
||||||
|
{ "chunk_x": 744, "chunk_z": 323, "x": 0, "z": 1536, "image": "744_323_x0_z1536.png" },
|
||||||
|
{ "chunk_x": 744, "chunk_z": 324, "x": 0, "z": 2560, "image": "744_324_x0_z2560.png" },
|
||||||
|
{ "chunk_x": 745, "chunk_z": 311, "x": 1024, "z": -10752, "image": "745_311_x1024_z-10752.png" },
|
||||||
|
{ "chunk_x": 745, "chunk_z": 312, "x": 1024, "z": -9728, "image": "745_312_x1024_z-9728.png" },
|
||||||
|
{ "chunk_x": 745, "chunk_z": 313, "x": 1024, "z": -8704, "image": "745_313_x1024_z-8704.png" },
|
||||||
|
{ "chunk_x": 745, "chunk_z": 314, "x": 1024, "z": -7680, "image": "745_314_x1024_z-7680.png" },
|
||||||
|
{ "chunk_x": 745, "chunk_z": 315, "x": 1024, "z": -6656, "image": "745_315_x1024_z-6656.png" },
|
||||||
|
{ "chunk_x": 745, "chunk_z": 316, "x": 1024, "z": -5632, "image": "745_316_x1024_z-5632.png" },
|
||||||
|
{ "chunk_x": 745, "chunk_z": 317, "x": 1024, "z": -4608, "image": "745_317_x1024_z-4608.png" },
|
||||||
|
{ "chunk_x": 745, "chunk_z": 318, "x": 1024, "z": -3584, "image": "745_318_x1024_z-3584.png" },
|
||||||
|
{ "chunk_x": 745, "chunk_z": 319, "x": 1024, "z": -2560, "image": "745_319_x1024_z-2560.png" },
|
||||||
|
{ "chunk_x": 745, "chunk_z": 320, "x": 1024, "z": -1536, "image": "745_320_x1024_z-1536.png" },
|
||||||
|
{ "chunk_x": 745, "chunk_z": 321, "x": 1024, "z": -512, "image": "745_321_x1024_z-512.png" },
|
||||||
|
{ "chunk_x": 745, "chunk_z": 322, "x": 1024, "z": 512, "image": "745_322_x1024_z512.png" },
|
||||||
|
{ "chunk_x": 745, "chunk_z": 323, "x": 1024, "z": 1536, "image": "745_323_x1024_z1536.png" },
|
||||||
|
{ "chunk_x": 745, "chunk_z": 324, "x": 1024, "z": 2560, "image": "745_324_x1024_z2560.png" },
|
||||||
|
{ "chunk_x": 746, "chunk_z": 311, "x": 2048, "z": -10752, "image": "746_311_x2048_z-10752.png" },
|
||||||
|
{ "chunk_x": 746, "chunk_z": 312, "x": 2048, "z": -9728, "image": "746_312_x2048_z-9728.png" },
|
||||||
|
{ "chunk_x": 746, "chunk_z": 313, "x": 2048, "z": -8704, "image": "746_313_x2048_z-8704.png" },
|
||||||
|
{ "chunk_x": 746, "chunk_z": 314, "x": 2048, "z": -7680, "image": "746_314_x2048_z-7680.png" },
|
||||||
|
{ "chunk_x": 746, "chunk_z": 315, "x": 2048, "z": -6656, "image": "746_315_x2048_z-6656.png" },
|
||||||
|
{ "chunk_x": 746, "chunk_z": 316, "x": 2048, "z": -5632, "image": "746_316_x2048_z-5632.png" },
|
||||||
|
{ "chunk_x": 746, "chunk_z": 317, "x": 2048, "z": -4608, "image": "746_317_x2048_z-4608.png" },
|
||||||
|
{ "chunk_x": 746, "chunk_z": 318, "x": 2048, "z": -3584, "image": "746_318_x2048_z-3584.png" },
|
||||||
|
{ "chunk_x": 746, "chunk_z": 319, "x": 2048, "z": -2560, "image": "746_319_x2048_z-2560.png" },
|
||||||
|
{ "chunk_x": 746, "chunk_z": 320, "x": 2048, "z": -1536, "image": "746_320_x2048_z-1536.png" },
|
||||||
|
{ "chunk_x": 746, "chunk_z": 321, "x": 2048, "z": -512, "image": "746_321_x2048_z-512.png" },
|
||||||
|
{ "chunk_x": 746, "chunk_z": 322, "x": 2048, "z": 512, "image": "746_322_x2048_z512.png" },
|
||||||
|
{ "chunk_x": 746, "chunk_z": 323, "x": 2048, "z": 1536, "image": "746_323_x2048_z1536.png" },
|
||||||
|
{ "chunk_x": 746, "chunk_z": 324, "x": 2048, "z": 2560, "image": "746_324_x2048_z2560.png" },
|
||||||
|
{ "chunk_x": 747, "chunk_z": 320, "x": 3072, "z": -1536, "image": "747_320_x3072_z-1536.png" },
|
||||||
|
{ "chunk_x": 747, "chunk_z": 321, "x": 3072, "z": -512, "image": "747_321_x3072_z-512.png" },
|
||||||
|
{ "chunk_x": 747, "chunk_z": 322, "x": 3072, "z": 512, "image": "747_322_x3072_z512.png" },
|
||||||
|
{ "chunk_x": 747, "chunk_z": 323, "x": 3072, "z": 1536, "image": "747_323_x3072_z1536.png" },
|
||||||
|
{ "chunk_x": 748, "chunk_z": 320, "x": 4096, "z": -1536, "image": "748_320_x4096_z-1536.png" },
|
||||||
|
{ "chunk_x": 748, "chunk_z": 321, "x": 4096, "z": -512, "image": "748_321_x4096_z-512.png" },
|
||||||
|
{ "chunk_x": 748, "chunk_z": 322, "x": 4096, "z": 512, "image": "748_322_x4096_z512.png" },
|
||||||
|
{ "chunk_x": 748, "chunk_z": 323, "x": 4096, "z": 1536, "image": "748_323_x4096_z1536.png" },
|
||||||
|
{ "chunk_x": 748, "chunk_z": 325, "x": 4096, "z": 3584, "image": "748_325_x4096_z3584.png" },
|
||||||
|
{ "chunk_x": 748, "chunk_z": 326, "x": 4096, "z": 4608, "image": "748_326_x4096_z4608.png" },
|
||||||
|
{ "chunk_x": 748, "chunk_z": 327, "x": 4096, "z": 5632, "image": "748_327_x4096_z5632.png" },
|
||||||
|
{ "chunk_x": 749, "chunk_z": 320, "x": 5120, "z": -1536, "image": "749_320_x5120_z-1536.png" },
|
||||||
|
{ "chunk_x": 749, "chunk_z": 321, "x": 5120, "z": -512, "image": "749_321_x5120_z-512.png" },
|
||||||
|
{ "chunk_x": 749, "chunk_z": 325, "x": 5120, "z": 3584, "image": "749_325_x5120_z3584.png" },
|
||||||
|
{ "chunk_x": 749, "chunk_z": 326, "x": 5120, "z": 4608, "image": "749_326_x5120_z4608.png" },
|
||||||
|
{ "chunk_x": 749, "chunk_z": 327, "x": 5120, "z": 5632, "image": "749_327_x5120_z5632.png" },
|
||||||
|
{ "chunk_x": 750, "chunk_z": 327, "x": 6144, "z": 5632, "image": "750_327_x6144_z5632.png" },
|
||||||
|
{ "chunk_x": 752, "chunk_z": 320, "x": 8192, "z": -1536, "image": "752_320_x8192_z-1536.png" },
|
||||||
|
{ "chunk_x": 752, "chunk_z": 321, "x": 8192, "z": -512, "image": "752_321_x8192_z-512.png" },
|
||||||
|
{ "chunk_x": 764, "chunk_z": 291, "x": 20480, "z": -31232, "image": "764_291_x20480_z-31232.png" },
|
||||||
|
{ "chunk_x": 764, "chunk_z": 292, "x": 20480, "z": -30208, "image": "764_292_x20480_z-30208.png" },
|
||||||
|
{ "chunk_x": 764, "chunk_z": 344, "x": 20480, "z": 23040, "image": "764_344_x20480_z23040.png" },
|
||||||
|
{ "chunk_x": 765, "chunk_z": 344, "x": 21504, "z": 23040, "image": "765_344_x21504_z23040.png" },
|
||||||
|
{ "chunk_x": 781, "chunk_z": 359, "x": 37888, "z": 38400, "image": "781_359_x37888_z38400.png" },
|
||||||
|
{ "chunk_x": 781, "chunk_z": 360, "x": 37888, "z": 39424, "image": "781_360_x37888_z39424.png" },
|
||||||
|
{ "chunk_x": 781, "chunk_z": 361, "x": 37888, "z": 40448, "image": "781_361_x37888_z40448.png" },
|
||||||
|
{ "chunk_x": 781, "chunk_z": 362, "x": 37888, "z": 41472, "image": "781_362_x37888_z41472.png" },
|
||||||
|
{ "chunk_x": 782, "chunk_z": 359, "x": 38912, "z": 38400, "image": "782_359_x38912_z38400.png" },
|
||||||
|
{ "chunk_x": 782, "chunk_z": 360, "x": 38912, "z": 39424, "image": "782_360_x38912_z39424.png" },
|
||||||
|
{ "chunk_x": 782, "chunk_z": 361, "x": 38912, "z": 40448, "image": "782_361_x38912_z40448.png" },
|
||||||
|
{ "chunk_x": 782, "chunk_z": 362, "x": 38912, "z": 41472, "image": "782_362_x38912_z41472.png" },
|
||||||
|
{ "chunk_x": 783, "chunk_z": 360, "x": 39936, "z": 39424, "image": "783_360_x39936_z39424.png" },
|
||||||
|
{ "chunk_x": 783, "chunk_z": 361, "x": 39936, "z": 40448, "image": "783_361_x39936_z40448.png" },
|
||||||
|
{ "chunk_x": 785, "chunk_z": 355, "x": 41984, "z": 34304, "image": "785_355_x41984_z34304.png" },
|
||||||
|
{ "chunk_x": 785, "chunk_z": 356, "x": 41984, "z": 35328, "image": "785_356_x41984_z35328.png" },
|
||||||
|
{ "chunk_x": 786, "chunk_z": 355, "x": 43008, "z": 34304, "image": "786_355_x43008_z34304.png" },
|
||||||
|
{ "chunk_x": 786, "chunk_z": 356, "x": 43008, "z": 35328, "image": "786_356_x43008_z35328.png" },
|
||||||
|
{ "chunk_x": 789, "chunk_z": 367, "x": 46080, "z": 46592, "image": "789_367_x46080_z46592.png" },
|
||||||
|
{ "chunk_x": 789, "chunk_z": 368, "x": 46080, "z": 47616, "image": "789_368_x46080_z47616.png" },
|
||||||
|
{ "chunk_x": 790, "chunk_z": 367, "x": 47104, "z": 46592, "image": "790_367_x47104_z46592.png" },
|
||||||
|
{ "chunk_x": 790, "chunk_z": 368, "x": 47104, "z": 47616, "image": "790_368_x47104_z47616.png" },
|
||||||
|
{ "chunk_x": 790, "chunk_z": 369, "x": 47104, "z": 48640, "image": "790_369_x47104_z48640.png" },
|
||||||
|
{ "chunk_x": 791, "chunk_z": 368, "x": 48128, "z": 47616, "image": "791_368_x48128_z47616.png" },
|
||||||
|
{ "chunk_x": 791, "chunk_z": 369, "x": 48128, "z": 48640, "image": "791_369_x48128_z48640.png" }
|
||||||
],
|
],
|
||||||
caves: [
|
caves: [
|
||||||
{ "chunk_x": 0, "chunk_z": 1, "x": -2560, "z": -3584, "image": "0_1_x-2560_z-3584.png" },
|
{ "chunk_x": 0, "chunk_z": 1, "x": -2560, "z": -3584, "image": "0_1_x-2560_z-3584.png" },
|
||||||
@ -157,6 +285,7 @@ var map = L.map('map', {
|
|||||||
// Create the tile layers
|
// Create the tile layers
|
||||||
var caves = L.layerGroup();
|
var caves = L.layerGroup();
|
||||||
var surface = L.layerGroup().addTo(map);
|
var surface = L.layerGroup().addTo(map);
|
||||||
|
map.attributionControl.addAttribution('With help from: DraconicNEO');
|
||||||
|
|
||||||
// Add each tile to the map
|
// Add each tile to the map
|
||||||
TILES.surface.forEach(tile => {
|
TILES.surface.forEach(tile => {
|
||||||
@ -169,6 +298,7 @@ TILES.caves.forEach(tile => {
|
|||||||
var image = L.imageOverlay(`/map-data/minecraft/mc-sdf-org/tiles/caves/${tile.image}`, bounds).addTo(caves);
|
var image = L.imageOverlay(`/map-data/minecraft/mc-sdf-org/tiles/caves/${tile.image}`, bounds).addTo(caves);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// Add waypoints
|
// Add waypoints
|
||||||
var subway_stations = L.layerGroup();
|
var subway_stations = L.layerGroup();
|
||||||
WAYPOINTS.subway_stations.forEach(waypoint => {
|
WAYPOINTS.subway_stations.forEach(waypoint => {
|
||||||
@ -177,10 +307,11 @@ WAYPOINTS.subway_stations.forEach(waypoint => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Ad a layer selector
|
// Ad a layer selector
|
||||||
L.control.layers({
|
L.control.layers(
|
||||||
"Caves": caves,
|
{
|
||||||
"Surface": surface,
|
"Caves": caves,
|
||||||
},
|
"Surface": surface,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Subway Stations": subway_stations
|
"Subway Stations": subway_stations
|
||||||
}
|
}
|
||||||
|
After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 189 KiB |
Before Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 240 KiB |
Before Width: | Height: | Size: 224 KiB |
Before Width: | Height: | Size: 364 KiB |
Before Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 823 KiB |
Before Width: | Height: | Size: 896 KiB |
Before Width: | Height: | Size: 552 KiB |
Before Width: | Height: | Size: 322 KiB |
Before Width: | Height: | Size: 182 KiB |
Before Width: | Height: | Size: 270 KiB |
Before Width: | Height: | Size: 802 KiB |
Before Width: | Height: | Size: 881 KiB |
Before Width: | Height: | Size: 757 KiB |
Before Width: | Height: | Size: 374 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 693 KiB |
Before Width: | Height: | Size: 408 KiB |
After Width: | Height: | Size: 121 KiB |
Before Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 123 KiB |
After Width: | Height: | Size: 247 KiB |
After Width: | Height: | Size: 57 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 121 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 65 KiB |
After Width: | Height: | Size: 101 KiB |
After Width: | Height: | Size: 64 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 306 KiB |
After Width: | Height: | Size: 330 KiB |
After Width: | Height: | Size: 274 KiB |
After Width: | Height: | Size: 311 KiB |
After Width: | Height: | Size: 153 KiB |
After Width: | Height: | Size: 357 KiB |
After Width: | Height: | Size: 57 KiB |
After Width: | Height: | Size: 296 KiB |
After Width: | Height: | Size: 477 KiB |
After Width: | Height: | Size: 93 KiB |
After Width: | Height: | Size: 842 KiB |
After Width: | Height: | Size: 718 KiB |
After Width: | Height: | Size: 154 KiB |
After Width: | Height: | Size: 331 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 594 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 450 KiB |
After Width: | Height: | Size: 643 KiB |
After Width: | Height: | Size: 161 KiB |
After Width: | Height: | Size: 225 KiB |
After Width: | Height: | Size: 217 KiB |
After Width: | Height: | Size: 880 KiB |
After Width: | Height: | Size: 692 KiB |
After Width: | Height: | Size: 202 KiB |
After Width: | Height: | Size: 352 KiB |
After Width: | Height: | Size: 355 KiB |
After Width: | Height: | Size: 339 KiB |
After Width: | Height: | Size: 288 KiB |
After Width: | Height: | Size: 401 KiB |
After Width: | Height: | Size: 720 KiB |
After Width: | Height: | Size: 781 KiB |
After Width: | Height: | Size: 870 KiB |
After Width: | Height: | Size: 892 KiB |
After Width: | Height: | Size: 741 KiB |
After Width: | Height: | Size: 792 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 406 KiB |
After Width: | Height: | Size: 727 KiB |
After Width: | Height: | Size: 832 KiB |
After Width: | Height: | Size: 843 KiB |
After Width: | Height: | Size: 691 KiB |
After Width: | Height: | Size: 613 KiB |
After Width: | Height: | Size: 700 KiB |
After Width: | Height: | Size: 714 KiB |
After Width: | Height: | Size: 866 KiB |
After Width: | Height: | Size: 878 KiB |
After Width: | Height: | Size: 761 KiB |
After Width: | Height: | Size: 707 KiB |
After Width: | Height: | Size: 381 KiB |
After Width: | Height: | Size: 254 KiB |
After Width: | Height: | Size: 423 KiB |
After Width: | Height: | Size: 793 KiB |
After Width: | Height: | Size: 847 KiB |
After Width: | Height: | Size: 744 KiB |
After Width: | Height: | Size: 781 KiB |
After Width: | Height: | Size: 733 KiB |
After Width: | Height: | Size: 776 KiB |
After Width: | Height: | Size: 813 KiB |
After Width: | Height: | Size: 826 KiB |
After Width: | Height: | Size: 799 KiB |