Change attacker color from green to blue; change trace color

This commit is contained in:
2025-06-16 22:41:30 -07:00
parent e16e76664c
commit baa1d34578
3 changed files with 13 additions and 13 deletions

View File

@@ -80,7 +80,7 @@ export function handleTrace(svg, selected, clone, current) {
if (!trace) {
trace = createTrace(getCellPosition(clone.parentElement), current, selected);
svg.querySelector('.gameboard').prepend(trace);
svg.querySelector('.grid').before(trace);
} else {
const points = `${trace.getAttribute('points')} ${current.x},${current.y}`;
trace.setAttributeNS(null, 'points', points);