Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/game')
-rw-r--r--src/modules/game/counter.js3
-rw-r--r--src/modules/game/firingArc.js3
-rw-r--r--src/modules/game/sightLine.js3
3 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/game/counter.js b/src/modules/game/counter.js
index ff9b0f4..0d75fc6 100644
--- a/src/modules/game/counter.js
+++ b/src/modules/game/counter.js
@@ -1,5 +1,4 @@
-const svgns = "http://www.w3.org/2000/svg",
- selectedClass = 'selected';
+const selectedClass = 'selected';
function dataSelector({ dataset: { allegiance, number }}) {
return `[data-number="${number}"][data-allegiance="${allegiance}"]`;
diff --git a/src/modules/game/firingArc.js b/src/modules/game/firingArc.js
index db122a0..817bc44 100644
--- a/src/modules/game/firingArc.js
+++ b/src/modules/game/firingArc.js
@@ -4,8 +4,7 @@
// cancels out, leaving us with a unitless ratio of sqrt(3) / (3 / 2), or
// 2 * sqrt(3) / 3.
-const svgns = "http://www.w3.org/2000/svg",
- horzToVertDistRatio = 2 * Math.sqrt(3) / 3,
+const horzToVertDistRatio = 2 * Math.sqrt(3) / 3,
arcSize = {
'small': Math.atan(horzToVertDistRatio / 6),
diff --git a/src/modules/game/sightLine.js b/src/modules/game/sightLine.js
index 2da99d4..6b94514 100644
--- a/src/modules/game/sightLine.js
+++ b/src/modules/game/sightLine.js
@@ -1,5 +1,4 @@
-const svgns = "http://www.w3.org/2000/svg",
- targetClassName = 'sight-line-target',
+const targetClassName = 'sight-line-target',
activeClassName = 'active';
function evenr_to_axial(x, y) {