Web Dev Solutions

Catalin Mititiuc

From a7925db494ab7db102a7acb6408ca5efcbf2cb08 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Fri, 9 Aug 2024 20:22:43 -0700 Subject: Remove random props on map resource window object --- src/modules/gameboard.js | 16 ++++++++-------- src/modules/scenario.js | 2 -- 2 files changed, 8 insertions(+), 10 deletions(-) (limited to 'src/modules') 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'); -- cgit v1.2.3