Change attacker color from green to blue; change trace color

This commit is contained in:
2024-05-19 12:10:00 -07:00
parent 56cb96c0f8
commit 66887e3710
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);