Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-07-02 17:18:45 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-07-02 17:18:45 -0700
commit5f17d5d786af74bb7b6bd6f99bcd0ccfab4fc9d5 (patch)
treeb0bc7678fae2f79799f5aee4d99d872bb7f58673 /src/modules/gameboard.js
parent3c0e59f68ee061abc98dafa07301bd54005e94dc (diff)
Add troop number and squad number when creating counters
Diffstat (limited to 'src/modules/gameboard.js')
-rw-r--r--src/modules/gameboard.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/gameboard.js b/src/modules/gameboard.js
index a716ca8..a6b3e22 100644
--- a/src/modules/gameboard.js
+++ b/src/modules/gameboard.js
@@ -290,11 +290,11 @@ export function start(el) {
});
// debug //
- const attacker = { dataset: { allegiance: 'attacker', number: 1, squad: 1 }};
- const defender = { dataset: { allegiance: 'defender', number: 1, squad: 2 }};
+ // const attacker = { dataset: { allegiance: 'attacker', number: 1, squad: 1 }};
+ // const defender = { dataset: { allegiance: 'defender', number: 1, squad: 2 }};
- soldier.place(svg, soldier.createCounter(attacker, 'blazer'), getCell(0, 0, 0, 0));
- soldier.place(svg, soldier.createCounter(defender, 'rifle'), getCell(-1, 0, 1, 0));
+ // soldier.place(svg, soldier.createCounter(attacker, 'blazer'), getCell(0, 0, 0, 0));
+ // soldier.place(svg, soldier.createCounter(defender, 'rifle'), getCell(-1, 0, 1, 0));
///////////
Observable.subscribe('select', select);