144 Commits

Author SHA1 Message Date
c1f575a9c6 Don't watch or inject live reload when running test server 2024-04-18 11:42:00 -07:00
8e74cef4a5 Run server on different port when running tests 2024-04-18 10:05:21 -07:00
23967fe2f5 Integration test running with test server 2024-04-17 22:26:53 -07:00
24e2bd5821 Add beginning setup for tests 2024-04-17 15:56:41 -07:00
143e3cdb45 Add callbacks for updating the UI 2024-04-17 13:05:47 -07:00
4229c732bc Use JS for damage indicator changes instead of CSS 2024-04-17 10:20:15 -07:00
460027e965 Move most game logic into its own file 2024-04-16 19:41:27 -07:00
4ffd8eb5c4 WIP 2024-04-16 15:47:47 -07:00
811cf8999f WIP 2024-04-16 13:29:16 -07:00
44feb23b19 Turn off the image maps 2024-04-14 13:27:38 -07:00
0aef8a6401 WIP 2024-04-14 13:12:21 -07:00
Catalin Mititiuc
97cc1f012a Import pan/zoom functions from external module 2024-04-14 10:14:25 -07:00
Catalin Mititiuc
143d61e49b Position hexes with CSS; move map styles into separate file 2024-04-11 17:17:03 -07:00
Catalin Mititiuc
b192fc0790 Import map svg in an object; add a dev server 2024-04-11 13:15:41 -07:00
Catalin Mititiuc
35a82e94e8 Change record sheet visibility with JavaScript instead of CSS
since the CSS way doesn't work on my version of Firefox
2024-04-11 10:04:56 -07:00
Catalin Mititiuc
dacecbb4f5 Remove stroke around selected counters 2024-04-07 11:08:06 -07:00
Catalin Mititiuc
5afa53ef7a Add turn counter and inning indicator 2024-04-06 15:09:09 -07:00
Catalin Mititiuc
5e2a62bb7a Make counter's firing arc visible on mouseover 2024-04-06 12:09:08 -07:00
Catalin Mititiuc
ac9b456314 Add styling to sight line target hex 2024-04-06 11:45:21 -07:00
Catalin Mititiuc
ba1e9009a3 Avoid hiding firing arc if visibility is toggled when changing unit selection 2024-04-06 11:21:22 -07:00
Catalin Mititiuc
f73241afb8 Sight line logic; I think it works but this conditional is gnarly 2024-04-06 10:46:56 -07:00
Catalin Mititiuc
16672db15a WIP: sight line 2024-04-05 21:39:52 -07:00
Catalin Mititiuc
ea400e2de3 Fix firing arc position 2024-04-05 16:42:26 -07:00
Catalin Mititiuc
e8f0dde6da Select soldier by clicking on their counter; allow locking on another counter vs the hex 2024-04-05 16:19:30 -07:00
Catalin Mititiuc
83ba223e01 WIP: fix sight line 2024-04-05 13:55:46 -07:00
Catalin Mititiuc
9dff1c289d WIP: put everything on the same hex in a group together; get rid of x and y coordinates on counters completely 2024-04-05 13:21:26 -07:00
Catalin Mititiuc
a618b160d0 Fix ending turn not selecting active counter 2024-04-05 09:52:40 -07:00
Catalin Mititiuc
9dbb0a5369 Enlarge counter radius on pointer hover 2024-04-05 09:27:46 -07:00
Catalin Mititiuc
8bd67fbee2 Fix using duplicate ids for counters and clip paths 2024-04-04 15:52:56 -07:00
Catalin Mititiuc
b75a92bfe3 Fix 'pan event being cancelled by the browser' bug 2024-04-04 15:14:16 -07:00
Catalin Mititiuc
9e653d0681 Add prone counters 2024-04-04 09:04:05 -07:00
Catalin Mititiuc
adc67da606 Toggle allegiance firing arc visibility 2024-04-03 14:22:33 -07:00
Catalin Mititiuc
dc56db385c Fix unselecting selected record 2024-04-03 13:18:35 -07:00
Catalin Mititiuc
24aa825bc6 Clear sightline when counter moves back along move trace 2024-04-03 13:14:23 -07:00
Catalin Mititiuc
616bdf15d9 Use right mouse button for setting sight line 2024-04-03 09:40:20 -07:00
Catalin Mititiuc
202f3ffa6c WIP: more refactor 2024-04-02 21:58:29 -07:00
Catalin Mititiuc
7dfea639fb WIP: refactor 2024-04-02 19:26:41 -07:00
Catalin Mititiuc
fbb9663183 Movement history 2024-04-02 15:57:47 -07:00
Catalin Mititiuc
b03ab287e0 Overlaying firing arcs don't just keep getting darker and darker 2024-04-01 14:06:25 -07:00
Catalin Mititiuc
6711c88125 End turn 2024-04-01 12:58:22 -07:00
Catalin Mititiuc
5c1dfbca50 WIP: end movement, turn buttons 2024-04-01 12:20:04 -07:00
Catalin Mititiuc
64aeda4b55 Fix after moving svg into container div 2024-03-31 17:28:16 -07:00
Catalin Mititiuc
69b1d8252e Make sight-line stationary on click 2024-03-31 15:52:29 -07:00
Catalin Mititiuc
7fa416ee1a WIP: sight line, distance 2024-03-31 12:41:28 -07:00
Catalin Mititiuc
8332ce9bea WIP: sight line and hex count 2024-03-31 11:48:43 -07:00
Catalin Mititiuc
798658a826 WIP: line draw, localstorage settings 2024-03-30 19:58:55 -07:00
Catalin Mititiuc
45cfef270f Use matrix transform to calculate counter coordinates 2024-03-29 16:30:43 -07:00
Catalin Mititiuc
694f2dbb24 Add adjustment debug panel 2024-03-29 12:30:20 -07:00
Catalin Mititiuc
c5bfc6cc17 Disallow selecting text in SVG text elements 2024-03-28 14:24:41 -07:00
Catalin Mititiuc
6122d612d4 Capture pointer when panning svg 2024-03-28 14:23:23 -07:00