From 2772333072ba8ddaa6721e3bfc6665e2df8d0a14 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Sun, 28 Apr 2024 16:19:59 -0700 Subject: Add all scenario maps --- public/index.html | 3 +- public/map.css | 28 ++++++++++++++++- public/map1.svg | 4 --- public/map2.svg | 66 +++++++++++++++-------------------------- public/map3.svg | 62 ++++++++++++++++++++++++++++++++++++++ public/scans/map1-less-mem.jpg | Bin 316000 -> 0 bytes public/scans/map1-photo.jpg | Bin 267053 -> 0 bytes public/scans/map1.png | Bin 1016098 -> 0 bytes src/modules/gameboard.js | 4 +-- 9 files changed, 117 insertions(+), 50 deletions(-) create mode 100644 public/map3.svg delete mode 100644 public/scans/map1-less-mem.jpg delete mode 100644 public/scans/map1-photo.jpg delete mode 100644 public/scans/map1.png diff --git a/public/index.html b/public/index.html index d8a91f9..4f15e08 100644 --- a/public/index.html +++ b/public/index.html @@ -112,7 +112,7 @@ - + Set firing arc: @@ -143,6 +143,7 @@ Map1 Map2 + Map3 diff --git a/public/map.css b/public/map.css index dbabab9..a53359c 100644 --- a/public/map.css +++ b/public/map.css @@ -199,7 +199,7 @@ g.selected use { fill: red; } -.board { +.board, .gameboard { transform: translate(19px, 31px) scale(4); } @@ -301,6 +301,32 @@ g[data-y="47"] { --i: 47; } g[data-y="48"] { --i: 48; } g[data-y="49"] { --i: 49; } g[data-y="50"] { --i: 50; } +g[data-y="51"] { --i: 51; } +g[data-y="52"] { --i: 52; } +g[data-y="53"] { --i: 53; } +g[data-y="54"] { --i: 54; } +g[data-y="55"] { --i: 55; } +g[data-y="56"] { --i: 56; } +g[data-y="57"] { --i: 57; } +g[data-y="58"] { --i: 58; } +g[data-y="59"] { --i: 59; } +g[data-y="60"] { --i: 60; } +g[data-y="61"] { --i: 61; } +g[data-y="62"] { --i: 62; } +g[data-y="63"] { --i: 63; } +g[data-y="64"] { --i: 64; } +g[data-y="65"] { --i: 65; } +g[data-y="66"] { --i: 66; } +g[data-y="67"] { --i: 67; } +g[data-y="68"] { --i: 68; } +g[data-y="69"] { --i: 69; } +g[data-y="70"] { --i: 70; } +g[data-y="71"] { --i: 71; } +g[data-y="72"] { --i: 72; } +g[data-y="73"] { --i: 73; } +g[data-y="74"] { --i: 74; } +g[data-y="75"] { --i: 75; } +g[data-y="76"] { --i: 76; } [data-x="0"] { --i: 0; } [data-x="1"] { --i: 1; } diff --git a/public/map1.svg b/public/map1.svg index d927ae4..99f6e95 100644 --- a/public/map1.svg +++ b/public/map1.svg @@ -1857,9 +1857,5 @@ - - - - diff --git a/public/map2.svg b/public/map2.svg index 1d0f8c4..013118d 100644 --- a/public/map2.svg +++ b/public/map2.svg @@ -1,8 +1,17 @@ - + + @@ -20,14 +29,22 @@ - + + + + + + + + + - + - + + + diff --git a/public/map3.svg b/public/map3.svg new file mode 100644 index 0000000..5fca7ee --- /dev/null +++ b/public/map3.svg @@ -0,0 +1,62 @@ + + + + + + + + + + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + + + + + + + + + + + + + + + + + + + + + diff --git a/public/scans/map1-less-mem.jpg b/public/scans/map1-less-mem.jpg deleted file mode 100644 index 322948b..0000000 Binary files a/public/scans/map1-less-mem.jpg and /dev/null differ diff --git a/public/scans/map1-photo.jpg b/public/scans/map1-photo.jpg deleted file mode 100644 index a13d14e..0000000 Binary files a/public/scans/map1-photo.jpg and /dev/null differ diff --git a/public/scans/map1.png b/public/scans/map1.png deleted file mode 100644 index 87232fc..0000000 Binary files a/public/scans/map1.png and /dev/null differ diff --git a/src/modules/gameboard.js b/src/modules/gameboard.js index 25db4ad..7623a31 100644 --- a/src/modules/gameboard.js +++ b/src/modules/gameboard.js @@ -241,7 +241,7 @@ export function start(el) { cell.dispatchEvent(new MouseEvent('pointerover')); }); - cell.addEventListener('pointerover', e => { + cell.addEventListener('pointerover', () => { let selected = getSelected(); if (selected) { @@ -261,7 +261,7 @@ export function start(el) { } }); - cell.addEventListener('pointerout', e => { + cell.addEventListener('pointerout', () => { let sl = getActiveSightLine(svg); if (sl) { -- cgit v1.2.3