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-27 15:58:11 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-27 15:58:11 -0700 |
commit | ce98e325656b8419b80d8c248e0469f3a9708322 (patch) | |
tree | 293c5e23601195be80161912275277554fcfb07e /src/modules/game | |
parent | 75a0c37ea5e5a9fa395690984c373536e8efccfa (diff) |
Rename some files
Diffstat (limited to 'src/modules/game')
-rw-r--r-- | src/modules/game/firing_arc.js (renamed from src/modules/game/firingArc.js) | 0 | ||||
-rw-r--r-- | src/modules/game/sight_line.js (renamed from src/modules/game/sightLine.js) | 3 | ||||
-rw-r--r-- | src/modules/game/soldier.js (renamed from src/modules/game/counter.js) | 0 |
3 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/game/firingArc.js b/src/modules/game/firing_arc.js index 817bc44..817bc44 100644 --- a/src/modules/game/firingArc.js +++ b/src/modules/game/firing_arc.js diff --git a/src/modules/game/sightLine.js b/src/modules/game/sight_line.js index 6b94514..411faa8 100644 --- a/src/modules/game/sightLine.js +++ b/src/modules/game/sight_line.js @@ -83,6 +83,7 @@ let sightLine, lockTarget, export function create({ x: x1, y: y1 }, { x: x2, y: y2 }) { const line = document.createElementNS(svgns, 'line'); + sightLine = line; line.classList.add('sight-line'); line.classList.add(activeClassName); @@ -91,8 +92,6 @@ export function create({ x: x1, y: y1 }, { x: x2, y: y2 }) { line.setAttributeNS(null, 'x2', x2); line.setAttributeNS(null, 'y2', y2); - sightLine = line; - return line; } diff --git a/src/modules/game/counter.js b/src/modules/game/soldier.js index 0d75fc6..0d75fc6 100644 --- a/src/modules/game/counter.js +++ b/src/modules/game/soldier.js |