WIP: add fallen mech and vehicle templates

This commit is contained in:
2025-06-16 22:41:32 -07:00
parent 8cad50c249
commit dfda05dc3a
3 changed files with 29 additions and 6 deletions

View File

@@ -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);