84 Commits

Author SHA1 Message Date
e3d642c994 Use an observer to create new object element when data attribute is changed 2025-06-16 22:41:29 -07:00
1d9f5325c5 Try using HTML markup in an SVG file 2025-06-16 22:41:29 -07:00
17fd1c813b Create record sheet dynamically when map is loaded 2025-06-16 22:41:29 -07:00
0da0c51a45 Rename element class 'board' to 'gameboard' 2025-06-16 22:41:29 -07:00
e1cfe2d815 Add cut-off right-most column to map3 2025-06-16 22:41:29 -07:00
27561ec752 Fix map-container not using full viewport height when map is small 2025-06-16 22:41:29 -07:00
4de8523965 Add all scenario maps 2025-06-16 22:41:29 -07:00
b980544203 Add ability to change maps 2025-06-16 22:41:29 -07:00
58c5d8dd63 Some cleanup 2025-06-16 22:41:29 -07:00
72b1b8adfc Refactor sight line module to remove almost all querying for elements 2025-06-16 22:41:29 -07:00
e385798667 Refactor firing arc module, 'set' function 2025-06-16 22:41:29 -07:00
0577330264 More refactor of firing arcs module 2025-06-16 22:41:29 -07:00
38c71baf9a WIP: simplify/clarify firing arc algo 2025-06-16 22:41:29 -07:00
51afec5648 WIP: firing arcs algo 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
baa958d577 Remove selected counter when double-clicked 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
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
b812884bdf Update viewBox to make off-board starting positions visible 2025-06-16 22:41:29 -07:00
bad21e66b5 Use checkboxes for grenades 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