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-07-31 16:38:36 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-07-31 16:38:36 -0700 |
commit | d270cd8174bafcf27fe99833165521d13e228d6f (patch) | |
tree | 13646081faa13fa6d27da6d8fea8eaec5134f79f /src/index.js | |
parent | 8f77c05bd94635da047069e118c9e62c0c2e3e34 (diff) |
WIP: trying just using pointerovers
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/index.js b/src/index.js index 2e2e306..e2b9fbb 100644 --- a/src/index.js +++ b/src/index.js @@ -84,10 +84,12 @@ async function buildScenario(req) { // recordSheet.start(svg.querySelector('.start-locations'), gameboard.getUnits()); recordSheet.start(null, scenarioUnits); - //const [trooper] = gameboard.getUnits(); - //Observable.notify('select', trooper); - //gameboard.setCounter('prone'); - //gameboard.setCounter('1st-floor'); + const [_, trooper] = gameboard.getUnits(); + Observable.notify('select', trooper); + gameboard.setCounter('prone'); + Observable.notify('select'); + + window.gb = gameboard; } function updateTurnCounter() { |