Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-07-16 18:57:47 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-07-16 18:57:47 -0700
commite2f6fbe291c10d4ae2a512ea1fb91cbc787fafa6 (patch)
tree7028df4ae09c2329f62681a453e31e01512d8281 /src/modules/gameboard.js
parent5483d4603b295fcfe6e7e024d3e91f21eef4b55c (diff)
WIP: add fallen mech and vehicle templates
Diffstat (limited to 'src/modules/gameboard.js')
-rw-r--r--src/modules/gameboard.js18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/modules/gameboard.js b/src/modules/gameboard.js
index d35b2b9..538ff92 100644
--- a/src/modules/gameboard.js
+++ b/src/modules/gameboard.js
@@ -398,15 +398,23 @@ export function start(el) {
arcs.append(leftArc);
mech.append(arcs);
- const cell = getCell(-4, 6, -2, 0);
+ //const cell = getCell(-4, 6, -2, 0);
//cell.append(mask);
//cell.append(mech);
- const mechTemplate = document.createElementNS(svgns, 'use');
- mechTemplate.setAttribute('href', '#mech-template');
- cell.append(mechTemplate);
- console.log(cell);
+ //const pt = document.createElementNS(svgns, 'circle');
+ //pt.setAttributeNS(null, 'r', 3);
+ //pt.setAttributeNS(null, 'fill', 'lime');
+ //pt.setAttributeNS(null, 'fill-opacity', 0.5);
+
+ //const mechTemplate = document.createElementNS(svgns, 'use');
+ //mechTemplate.setAttributeNS(null, 'href', '#fallen-mech-template');
+ //mechTemplate.setAttribute('href', '#standing-mech-template');
+ //mechTemplate.setAttributeNS(null, 'href', '#vehicle-template');
+ //cell.append(pt);
+ //cell.append(mechTemplate);
+ //console.log(cell);
///////////
Observable.subscribe('select', select);