index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-08-05 15:29:45 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-08-05 15:29:58 -0700 |
commit | f35d716bd38d03285fa511f6794af5d93e88f4dc (patch) | |
tree | c9b10a7ff8749a2cdb51a58ba8731e965986e18c /src/modules/gameboard.js | |
parent | 34ed6e2a9c0ef9d4354454394c52e412d8c34d51 (diff) |
WIP: smoothe squad view
Diffstat (limited to 'src/modules/gameboard.js')
-rw-r--r-- | src/modules/gameboard.js | 16 |
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); |