Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/game.js')
-rw-r--r--src/modules/game.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/game.js b/src/modules/game.js
index 260da72..62cca1e 100644
--- a/src/modules/game.js
+++ b/src/modules/game.js
@@ -14,7 +14,10 @@ export default class Game {
const board = this.getBoard();
this.firingArc = new FiringArc(svg, board);
- this.sightLine = new SightLine(svg, board);
+ this.sightLine = SightLine(svg, board);
+
+ console.log(this.sightLine);
+
this.counter = new Counter(svg);
this.setUpCells();
@@ -90,7 +93,7 @@ export default class Game {
* @param {(count: [number]) => void} fn
*/
set distanceCallback(fn) {
- this.sightLine.setDistanceCallback(fn);
+ this.sightLine.distanceCallback = fn;
}
endMove() {