From a69aee2d19e2d853da0a429be472de54b03ffd7d Mon Sep 17 00:00:00 2001 From: ZuxDev Date: Thu, 17 Oct 2024 13:49:56 -0400 Subject: [PATCH] rasterization --- static/index.css | 2 + static/index.js | 0 static/map.js | 4 +- static/pol.svg | 148 ++++++++++++++++++++++++++++++++++------------- views/index.ejs | 6 +- 5 files changed, 115 insertions(+), 45 deletions(-) create mode 100644 static/index.js diff --git a/static/index.css b/static/index.css index 79f2034..903e6f4 100644 --- a/static/index.css +++ b/static/index.css @@ -120,6 +120,8 @@ body { width: var(--elem-height); height: var(--elem-height); background: var(--gray); + image-rendering: pixelated; + image-rendering: crisp-edges; } a { diff --git a/static/index.js b/static/index.js new file mode 100644 index 0000000..e69de29 diff --git a/static/map.js b/static/map.js index 52ee52e..47fd860 100644 --- a/static/map.js +++ b/static/map.js @@ -20,10 +20,12 @@ let vel = [0, 0]; let center = [0, 0]; let lastPos = [0, 0]; let isMouse = false; -let zoom = 0.8; +let zoom = 1; let id = ''; +ctx.imageSmoothingEnabled = false; + function fixEvent(e) { let r = map.getBoundingClientRect(); e = { clientX: e.clientX, clientY: e.clientY }; diff --git a/static/pol.svg b/static/pol.svg index 4e574a6..2cec65d 100644 --- a/static/pol.svg +++ b/static/pol.svg @@ -26,27 +26,37 @@ inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" showgrid="false" - inkscape:zoom="0.50269918" - inkscape:cx="1152.7769" - inkscape:cy="1252.24" + inkscape:zoom="0.710924" + inkscape:cx="1251.1886" + inkscape:cy="1307.4534" inkscape:window-width="1918" inkscape:window-height="1056" inkscape:window-x="0" inkscape:window-y="22" inkscape:window-maximized="1" - inkscape:current-layer="g1" /> + inkscape:current-layer="g1" + showguides="false" + inkscape:lockguides="true" /> + + style="display:inline;stroke-width:0.950875" + sodipodi:insensitive="true" + x="0" + y="0" /> + style="opacity:1;fill:#ff1d1d;fill-opacity:0.350083;stroke:#ffffff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" + d="m 1289.4306,1070.2656 -5.0673,-5.1357 -1.456,-14.7639 -5.1227,-9.5678 4.8355,-9.3213 -7.2436,-11.226 -16.1401,-2.1442 -4.0291,-12.2587 -0.6479,10.8603 -7.0727,7.7182 -10.7441,3.7164 -8.1862,-1.8277 -10.4517,-4.5138 -16.468,0.1729 -14.0219,17.2973 -37.94,40.7401 c 0,0 -58.0536,24.0585 -59.0996,21.4434 -0.8161,-2.0401 14.4284,35.5609 22.2382,53.3847 -9.0509,12.8999 -16.1299,27.0253 -21.1797,41.8887 -3.141,-0.4686 -6.3124,-0.7043 -9.4882,-0.7051 -35.5691,-7e-4 -64.404,28.8333 -64.4043,64.4024 0.01,3.173 0.2499,6.3412 0.7246,9.4785 l -7.1406,20.7754 -22.92969,-0.7402 -17.75,-13.3106 c 0,0 -15.53497,1.4776 -17.75391,5.1758 -1.87585,3.1265 -3.73,10.9789 -3.81836,16.0234 l 6.89844,-0.7734 -1.90235,18.3105 -85.76367,17.1602 -12.23633,-14.4922 -17.10351,-18.9844 -11.32813,5.375 -11.90234,7.2364 -7.95313,-0.053 3.66211,12.627 4.75,9.9355 7.38282,28.3809 8.44531,19.7773 -10.03906,10.1699 9.43164,26.7032 26.98632,-3.6172 132.80274,-74.5918 33.9941,-8.3672 37.4277,-10.918 c 0.1242,0.047 0.2486,0.094 0.3731,0.1407 l 55.5742,79.039 13.5352,-6.375 14.4765,27.875 c 0,0 122.3134,-1.9024 118.4375,-4.4863 -0.3488,-0.2326 -2.6853,-2.2171 -3.8418,-3.1621 69.6115,-5.6015 128.2362,-54.2515 146.5762,-121.6367 l 14.9277,8.1425 46.0254,-27.1953 13.5977,6.2735 30.334,13.0761 20.9199,3.1368 9.9375,-24.0567 -16.2129,15.6895 c 0,0 -23.5357,-4.7076 -26.6738,-7.8457 -3.138,-3.138 -5.7518,-5.229 -7.8438,-7.8438 -2.0921,-2.6154 -4.707,-13.0762 -4.707,-13.0762 l 6.7988,-12.0273 13.0742,-2.0938 10.9844,7.3223 -13.5977,-14.1211 -6.2773,-5.7539 -2.0918,-6.7988 4.1856,-14.1211 2.6132,-13.0742 c 0,0 -4.7064,13.0747 -10.9824,18.3047 -6.2761,5.2301 -3.6641,3.1383 -8.3711,5.2304 -4.707,2.092 -2.0889,1.5688 -5.75,2.0918 -3.6611,0.5231 -3.139,2.6155 -3.6621,0.5235 -0.523,-2.092 -1.5703,-6.2774 -1.5703,-6.2774 0,0 1.0466,-2.0912 3.1387,-3.6601 2.0919,-1.5691 6e-4,4.1824 3.1386,-2.0938 3.1381,-6.2761 3.6602,-4.1838 3.6602,-6.7988 0,-2.6151 4.1841,2.6183 0,-3.1348 -4.184,-5.7531 -2.0916,-4.1876 -4.1836,-6.8027 -2.0921,-2.6151 2.6152,3.1385 -2.0918,-4.1836 -4.7071,-7.322 -2.092,-4.7061 -4.707,-8.3672 -2.6151,-3.6611 -1.5697,-1.046 -3.1387,-4.707 -1.569,-3.6611 0.5233,-1.569 -2.0918,-4.7071 -2.6151,-3.138 -0.5236,2e-4 -3.1387,-4.707 -2.615,-4.707 -5.2305,-6.2757 -3.1386,-6.7988 2.0921,-0.5226 0.5236,-2.093 3.1386,-3.6621 2.6151,-1.5689 0.5232,-2.0918 2.6153,-2.0918 2.092,0 0.5226,3.1392 4.1836,-1.0449 3.6611,-4.1841 3.141,-0.5231 3.664,-4.7071 0.523,-4.184 1.0449,-12.0293 1.0449,-12.0293 l -8.3691,3.1387 -13.5977,23.0098 c 0,0 -32.4259,12.0301 -35.041,13.0761 -0.1106,0.044 -0.6607,0.1596 -0.8125,0.211 l 0.07,-3.9922 -17.3808,-51.7735 z" + sodipodi:nodetypes="ccccccccccccccccsccccccccscccccccccccccccccccccccscccccccccsscccccccccsssscsssssssssscsssscccscccc" /> Spawn + x="1269.2493" + y="1265.3618" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10.6667px;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans';stroke-width:7.73054">Spawn Nexus - Inner Circle + x="1122.8787" + y="1220.1627" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:85.3333px;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans Bold';stroke-width:7.73054">Nexus + United + x="1034.5195" + y="1255.4353" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10.6667px;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans';stroke-width:7.73054">United + Exolands + Inner Circle + Abridgia + + Craphia + Aetheristan diff --git a/views/index.ejs b/views/index.ejs index 8de3368..7090a26 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -1,6 +1,6 @@ <%- include("header.ejs") %>
-

Map of Minzeo

+

Map of Minzeo (?)

Position


@@ -8,7 +8,7 @@
         

Pan camera: WASD, Mouse

Speed up panning: Q

Zoom: Mouse wheel

-

About

+

About

Minzeo is a Minecraft civilization roleplay. Unlike similar servers, it isn't a short-term challenge, and has no claim plugins.

The server's geopolitics is up to the players and the gameplay rules.

Rules

@@ -26,7 +26,7 @@

Joining

- +
<%- include("footer.ejs") %> \ No newline at end of file