Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-08-09 20:22:43 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-08-09 20:22:43 -0700
commita7925db494ab7db102a7acb6408ca5efcbf2cb08 (patch)
treef0e1abebeff0e259acc32e7cb25c5634d91bd84a /src/modules
parent518693844d391b5c0753555b6fafe5810c1c9afb (diff)
Remove random props on map resource window object
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');