Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-07-31 16:38:36 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-07-31 16:38:36 -0700
commitd270cd8174bafcf27fe99833165521d13e228d6f (patch)
tree13646081faa13fa6d27da6d8fea8eaec5134f79f /src/index.js
parent8f77c05bd94635da047069e118c9e62c0c2e3e34 (diff)
WIP: trying just using pointerovers
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js10
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() {