index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-25 20:06:51 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-25 20:06:51 -0700 |
commit | 917058f0248783c435962f7eb2688c77b8e5f374 (patch) | |
tree | b3f51ce7b13d60b82a2a6073265ffb6e56abffd1 /public/map.css | |
parent | 1833dfebf19cf4478a74d907b52c9e569879646f (diff) |
WIP: simplify/clarify firing arc algo
Diffstat (limited to 'public/map.css')
-rw-r--r-- | public/map.css | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/public/map.css b/public/map.css index b961d35..d960ba8 100644 --- a/public/map.css +++ b/public/map.css @@ -144,11 +144,15 @@ polygon.firing-arc[data-allegiance="liao"] { stroke: none; } -#lines polygon { +#lines polyline, #lines line { fill: none; stroke: black; } +#lines line { + pointer-events: none; +} + .sight-line { stroke: orangered; stroke-width: 0.5px; @@ -203,7 +207,7 @@ g.start-locations > g:last-child { } /* Inradius and circumradius values come from the hexagon */ -.grid { +.grid, g.start-locations { --inradius: 8.66px; --circumradius: 10px; --x-step: calc(var(--inradius) * 2); @@ -215,7 +219,7 @@ g[data-y], g.start-locations > g { transform: translate(var(--translateX), calc(var(--y-step) * var(--i))); } -g[data-y]:nth-child(even) { +g[data-y]:nth-child(odd) { --translateX: calc(var(--inradius)); } |