121 Commits

Author SHA1 Message Date
13af41bf92 Add two more sight line query functions 2025-06-16 22:41:29 -07:00
bfd656314c Move more firing arc logic to its module 2025-06-16 22:41:29 -07:00
5eadfa0c87 Change troop-number and troop-allegiance references to just number and allegiance 2025-06-16 22:41:29 -07:00
714b08a8ee Remove unused files 2025-06-16 22:41:29 -07:00
e2b88df5c0 Remove references to 'container' in counter.js; fix dblclick not working right 2025-06-16 22:41:29 -07:00
baa958d577 Remove selected counter when double-clicked 2025-06-16 22:41:29 -07:00
d560c1a8a5 Remove 'previous' from counter's dataset when move has ended 2025-06-16 22:41:29 -07:00
7fc0522a98 Retain preexisting counters in move history 2025-06-16 22:41:29 -07:00
ab6faa6a0d Make trooper counters groups 2025-06-16 22:41:29 -07:00
0c389edd4b WIP: hover over counter reveals firing arc working again 2025-06-16 22:41:29 -07:00
73c5e95c48 WIP: sight line and trace working again 2025-06-16 22:41:29 -07:00
9e001520b8 WIP: handle clicking on counters at the cell level 2025-06-16 22:41:29 -07:00
2c721b37a5 Add a counter module 2025-06-16 22:41:29 -07:00
733c061587 Add a sight line module 2025-06-16 22:41:29 -07:00
0407095ec3 Make a firing arc module 2025-06-16 22:41:29 -07:00
efa3c0c3e7 Update pan-zoom lib 2025-06-16 22:41:29 -07:00
5e3fac3d67 Extract panzoom logic into separate module 2025-06-16 22:41:29 -07:00
6990e20e15 Remove scrollbars from svg 2025-06-16 22:41:29 -07:00
d6bb247699 Add missing row 2025-06-16 22:41:29 -07:00
deacb601ba Add grenade counter 2025-06-16 22:41:29 -07:00
329689138c Fade the map in after it is done loading 2025-06-16 22:41:29 -07:00
d36236d0fe Update storing pan & zoom changes to localStorage 2025-06-16 22:41:29 -07:00
b812884bdf Update viewBox to make off-board starting positions visible 2025-06-16 22:41:29 -07:00
1fc6657fe5 Update pan-zoom lib 2025-06-16 22:41:29 -07:00
bad21e66b5 Use checkboxes for grenades 2025-06-16 22:41:29 -07:00
a0c724992e Add another integration test; document debugging integration tests 2025-06-16 22:41:29 -07:00
07d6d58699 Add Docker command scripts 2025-06-16 22:41:29 -07:00
b0eebf13f2 Don't watch or inject live reload when running test server 2025-06-16 22:41:29 -07:00
e9bfecace9 Run server on different port when running tests 2025-06-16 22:41:29 -07:00
6084c54e2e Integration test running with test server 2025-06-16 22:41:29 -07:00
927d8a7f0c Add beginning setup for tests 2025-06-16 22:41:29 -07:00
695ab184b2 Add callbacks for updating the UI 2025-06-16 22:41:29 -07:00
80cb8c5e9c Use JS for damage indicator changes instead of CSS 2025-06-16 22:41:29 -07:00
a9a8478c6e Move most game logic into its own file 2025-06-16 22:41:28 -07:00
2a5c283b02 WIP 2025-06-16 22:41:28 -07:00
9ea9047334 WIP 2025-06-16 22:41:28 -07:00
ac26c68e1a Turn off the image maps 2025-06-16 22:41:28 -07:00
268486447e WIP 2025-06-16 22:41:28 -07:00
fdf4b93856 Import pan/zoom functions from external module 2025-06-16 22:41:28 -07:00
a0c2640bb7 Position hexes with CSS; move map styles into separate file 2025-06-16 22:41:28 -07:00
f42ad7c7be Import map svg in an object; add a dev server 2025-06-16 22:41:28 -07:00
6aed9539fc Change record sheet visibility with JavaScript instead of CSS
since the CSS way doesn't work on my version of Firefox
2025-06-16 22:41:28 -07:00
326c9f914e Remove stroke around selected counters 2025-06-16 22:41:28 -07:00
8d22cac6dc Add turn counter and inning indicator 2025-06-16 22:41:28 -07:00
bf3b4be441 Make counter's firing arc visible on mouseover 2025-06-16 22:41:28 -07:00
bebdf3c7d6 Add styling to sight line target hex 2025-06-16 22:41:28 -07:00
9f34506a34 Avoid hiding firing arc if visibility is toggled when changing unit selection 2025-06-16 22:41:28 -07:00
126b9748b9 Sight line logic; I think it works but this conditional is gnarly 2025-06-16 22:41:28 -07:00
36bbe584be WIP: sight line 2025-06-16 22:41:28 -07:00
9e7069ef13 Fix firing arc position 2025-06-16 22:41:28 -07:00