Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/gameboard.js')
-rw-r--r--src/modules/gameboard.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/modules/gameboard.js b/src/modules/gameboard.js
index 74e5582..8cb6af1 100644
--- a/src/modules/gameboard.js
+++ b/src/modules/gameboard.js
@@ -378,10 +378,18 @@ export function start(el) {
//frontmost.append(trooper2);
//cell2.classList.add('hover');
//
- //const cell = getCell(0, 0, 0, 0);
- //const attacker = { dataset: { allegiance: 'attacker', number: 1, squad: 1 }};
- //const trooper = soldier.createCounter(attacker, 'blazer');
- //soldier.place(svg, trooper2, cell2);
+
+ soldier.place(
+ svg,
+ soldier.createCounter({ dataset: { allegiance: 'attacker', number: 2, squad: 1 }}, 'hsplaser'),
+ getCell(-2, 3, -1, 0)
+ );
+
+ soldier.place(
+ svg,
+ soldier.createCounter({ dataset: { allegiance: 'attacker', number: 2, squad: 5 }}, 'rifle'),
+ getCell(-3, 3, 0, 0)
+ );
// Add some counters in an unoccupied cell
//const countersCell = getCell(-1, 1, 0, 0);