165 Commits

Author SHA1 Message Date
0cf32e65f7 WIP: recreate object element when loading maps to avoid node warnings about dangling file handles 2025-06-16 22:41:29 -07:00
8fb858fc46 Clear placing stack on unselect 2025-06-16 22:41:29 -07:00
088a37d128 Allow placing a counter that doesn't already exist 2025-06-16 22:41:29 -07:00
96afc1515b Fix test; add some scripts 2025-06-16 22:41:29 -07:00
484100727f Allow selecting off-board units 2025-06-16 22:41:29 -07:00
0af0271076 Fix cancel firing arc placement bug 2025-06-16 22:41:29 -07:00
8970c1f59e Refactor index.js 2025-06-16 22:41:29 -07:00
e6b6217221 Refactor place function in soldier module 2025-06-16 22:41:29 -07:00
93d17fc711 Fix end movement bug 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
1299c2cdaf Refactor cell event listeners 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
7455dd0173 Clear sight line before drawing after unlocking 2025-06-16 22:41:29 -07:00
0da0c51a45 Rename element class 'board' to 'gameboard' 2025-06-16 22:41:29 -07:00
c0556d2bd4 Remove a console.log 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
bb92a6b4ba Restore content visibility on page reload 2025-06-16 22:41:29 -07:00
22d9f549ec Add a map.js 2025-06-16 22:41:29 -07:00
b980544203 Add ability to change maps 2025-06-16 22:41:29 -07:00
3e513c5684 Rename some files 2025-06-16 22:41:29 -07:00
58c5d8dd63 Some cleanup 2025-06-16 22:41:29 -07:00
868dbf13bb Remove 'reveal pattern' from counter module 2025-06-16 22:41:29 -07:00
863709b062 Remove 'reveal pattern' from sight line module 2025-06-16 22:41:29 -07:00
e33e9de566 Remove 'reveal pattern' from firing arc module 2025-06-16 22:41:29 -07:00
3749477ec1 Remove 'reveal pattern' from game, as it's not necessary 2025-06-16 22:41:29 -07:00
2e1a160568 Remove calling record sheet object with 'new' 2025-06-16 22:41:29 -07:00
63376cb641 Move function into closure 2025-06-16 22:41:29 -07:00
48f239470f Remove calling the gme module with 'new' 2025-06-16 22:41:29 -07:00
ff2aaab4da Remove calling the counter module with 'new' 2025-06-16 22:41:29 -07:00
de9bdbc83a Minor refactor 2025-06-16 22:41:29 -07:00
6f510c9383 Refactor sight line module to extract svg queries into game module 2025-06-16 22:41:29 -07:00
fb1468982a Remove calling firing arc module with 'new' 2025-06-16 22:41:29 -07:00
5f648d48d4 Remove calling sight line module with 'new' 2025-06-16 22:41:29 -07:00
0fbed6a3e7 Make sight line module a function instead of a class 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
189b044242 More refactor of firing arc module 2025-06-16 22:41:29 -07:00
0577330264 More refactor of firing arcs module 2025-06-16 22:41:29 -07:00
6ef3ee2892 Remove svg queries from firing arc position function 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
485aaffeae More functional refactor 2025-06-16 22:41:29 -07:00
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