From e2f6fbe291c10d4ae2a512ea1fb91cbc787fafa6 Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Tue, 16 Jul 2024 18:57:47 -0700
Subject: WIP: add fallen mech and vehicle templates
---
public/assets/images/counters.svg | 14 +++++++++++++-
public/assets/images/map4.svg | 3 +++
src/modules/gameboard.js | 18 +++++++++++++-----
3 files changed, 29 insertions(+), 6 deletions(-)
diff --git a/public/assets/images/counters.svg b/public/assets/images/counters.svg
index bf91f9f..ab525d9 100644
--- a/public/assets/images/counters.svg
+++ b/public/assets/images/counters.svg
@@ -81,7 +81,7 @@
-
+
@@ -127,4 +127,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/public/assets/images/map4.svg b/public/assets/images/map4.svg
index 2969ca9..2603ed5 100644
--- a/public/assets/images/map4.svg
+++ b/public/assets/images/map4.svg
@@ -43,6 +43,9 @@
+
+
+
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);
--
cgit v1.2.3