Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/gameboard.js16
-rw-r--r--src/modules/scenario.js2
2 files changed, 8 insertions, 10 deletions
diff --git a/src/modules/gameboard.js b/src/modules/gameboard.js
index 0bde2df..fd2aaf1 100644
--- a/src/modules/gameboard.js
+++ b/src/modules/gameboard.js
@@ -405,14 +405,14 @@ export function start(el) {
//cell2.classList.add('hover');
//
- const trooper1 = soldier.createCounter({ dataset: { allegiance: 'attacker', number: 1, squad: 1 }}, 'blazer');
- soldier.place(svg, trooper1, getCell(-3, 9, -6, 0));
-
- soldier.place(
- svg,
- soldier.createCounter({ dataset: { allegiance: 'defender', number: 1, squad: 1 }}, 'blazer'),
- getCell(1, -8, 7, 0)
- );
+ //const trooper1 = soldier.createCounter({ dataset: { allegiance: 'attacker', number: 1, squad: 1 }}, 'blazer');
+ //soldier.place(svg, trooper1, getCell(-3, 9, -6, 0));
+ //
+ //soldier.place(
+ // svg,
+ // soldier.createCounter({ dataset: { allegiance: 'defender', number: 1, squad: 1 }}, 'blazer'),
+ // getCell(1, -8, 7, 0)
+ //);
// Add some counters in an unoccupied cell
//const countersCell = getCell(-1, 1, 0, 0);
diff --git a/src/modules/scenario.js b/src/modules/scenario.js
index 4f72168..235827e 100644
--- a/src/modules/scenario.js
+++ b/src/modules/scenario.js
@@ -91,8 +91,6 @@ export async function build(svg, request) {
});
});
- //if (startLocs) grid.before(svg.ownerDocument.importNode(startLocs, true));
-
const scenarioGrid = scenario.querySelector('.grid');
const scenarioBuildings = scenario.querySelector('.gameboard .buildings');