index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
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 |