Module:Minimap/Data

- Math - -- find a coordinate on top left of the map, and find the exact x/y position of it on the image. write both down -- do the same for bottom right (big distances help make rounding errors less impactful) -- Find imageScale: --   pixel width: difference between left most image x (that you wrote down) and right most image x --    coordinate width: same but for left most coord x (corresponding to left most point), and right most coord x --    imageScale = coordinate width / pixel width -- Find topLeftCoord: --   [1] = leftCoordX - (leftMostPixelX * imageScale) --   [2] = topCoordZ - (topMostPixelY * imageScale)

return { ["hub"]={ imageClass="minimap-hub", imageScale=0.1725146198830409, topLeftCoord={ -294, -232.4 }, imageDimensions={ 2842, 2554 }, },

["crypts"]={ imageClass="minimap-crypt", imageScale=0.0625938908362544, topLeftCoord={ -195.5, -161.5 }, imageDimensions={ 2445, 1422 }, },

["the park"]={ imageClass="minimap-park", imageScale=0.0625931445603577, topLeftCoord={ -479.5, -140.459 }, imageDimensions={ 3339, 3643 }, },

["howling cave"]={ imageClass="howling-cave", imageScale=0.0366624525916561, topLeftCoord={ -402.498, -105.4778 }, imageDimensions={ 2183, 3952 }, },

-- Combat Islands ["spiders den"]={ imageClass="minimap-spiders-den", imageScale=0.0916538658474142, topLeftCoord={ -390.58, -366.455 }, imageDimensions={ 2827, 2542 }, },	["blazing fortress"]={ imageClass="minimap-blazing-fort", imageScale=0.1657458563535912, topLeftCoord={ -433.6, -744.8 }, imageDimensions={ 1540, 2235 }, },	["the end"]={ imageClass="minimap-end", imageScale=0.1440200375704446, topLeftCoord={ -785.4, -411.4 }, imageDimensions={ 2333, 1951 }, },

-- Mining Islands ["gold mine"]={ imageClass="minimap-gold-mine", imageScale=0.0623287671232877, topLeftCoord={ -86.2, -398.3 }, imageDimensions={ 2096, 2080 }, },	["deep caverns"]={ imageClass="minimap-deep-caverns", imageScale=0.06202898550724637681159420289855, topLeftCoord={ -83.193, -63.193 }, imageDimensions={ 2572, 2492 }, },	["lapis quarry"]={ imageClass="minimap-lapis-quarry", imageScale=0.036340038935756, topLeftCoord={ -61.3945, -30.413 }, imageDimensions={ 3407, 2481 }, },	["gunpowder mines"]={ imageClass="minimap-gunpowder-mines", imageScale=0.0361565131253096, topLeftCoord={ -41.129, -43.258 }, imageDimensions={ 2863, 2781 }, },	["pigmans den"]={ imageClass="minimap-pigmans-den", imageScale=0.0359453630481668, topLeftCoord={ -28.08, -33 }, imageDimensions={ 2454, 2938 }, },	["slimehill"]={ imageClass="minimap-slimehill", imageScale=0.0366620111731844, topLeftCoord={ -49.66, -49 }, imageDimensions={ 3174, 3468 }, },	["diamond reserve"]={ imageClass="minimap-diamond-reserve", imageScale=0.0361565131253096, topLeftCoord={ -66.22, -37.3 }, imageDimensions={ 3437, 3001 }, },	["obsidian sanctuary"]={ imageClass="minimap-obsidian-sanctuary", imageScale=0.0362752430815258, topLeftCoord={ -79.45, -31.386 }, imageDimensions={ 3848, 2837 }, },	["dwarven mines"]={ imageClass="minimap-dwarven-mines", imageScale=0.25, topLeftCoord={ -217.5, -178.25 }, imageDimensions={ 1708, 1909 }, },

-- Farming Islands ["the barn"]={ imageClass="minimap-barn", imageScale=0.0626151012891344, topLeftCoord={ 82.477, -322.49 }, imageDimensions={ 2125, 2045 }, },	["mushroom desert"]={ imageClass="minimap-mushroom-desert", imageScale=0.1251518833535844, topLeftCoord={ 128.48, -469.5 }, imageDimensions={ 1039, 1047 }, },

-- Event Islands ["winter island"]={ imageClass="minimap-winter-island", imageScale=0.1041514930808449, topLeftCoord={ -95.7, -100.89 }, imageDimensions={ 2015, 2120 }, }, }