diff options
author | elioat <elioat@tilde.institute> | 2025-08-23 09:13:38 -0400 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2025-08-23 09:13:38 -0400 |
commit | 5765cfc6b0ce121977a372de5c20bfdf7b6055a3 (patch) | |
tree | 8d4e4d3e14444d6f0f580be6fad7c30ce325ba85 /html/XCOM | |
parent | fecef3aa4c7a0423e0f3c2c30fd4eb4ed0453262 (diff) | |
download | tour-master.tar.gz |
Diffstat (limited to 'html/XCOM')
-rw-r--r-- | html/XCOM/game.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/html/XCOM/game.js b/html/XCOM/game.js index e428960..d144401 100644 --- a/html/XCOM/game.js +++ b/html/XCOM/game.js @@ -2238,10 +2238,10 @@ function drawUnits(model, ctx) { if (sanitizedUnit.owner === 'player') { // Movement indicator if (!sanitizedUnit.hasMoved) { - ctx.fillStyle = '#4CAF50'; - ctx.beginPath(); - ctx.arc(centerX - 8, centerY + UNIT_RADIUS + 5, 3, 0, Math.PI * 2); - ctx.fill(); + // ctx.fillStyle = '#4CAF50'; + // ctx.beginPath(); + // ctx.arc(centerX - 8, centerY + UNIT_RADIUS + 5, 3, 0, Math.PI * 2); + // ctx.fill(); } // Attack indicator @@ -2258,9 +2258,9 @@ function drawUnits(model, ctx) { ctx.font = '12px Arial'; ctx.textAlign = 'center'; if (!sanitizedUnit.hasMoved) { - ctx.fillText('MOVE', centerX, centerY - UNIT_RADIUS - 15); + // ctx.fillText('MOVE', centerX, centerY - UNIT_RADIUS - 15); } else if (!sanitizedUnit.hasAttacked) { - ctx.fillText('ATTACK', centerX, centerY - UNIT_RADIUS - 15); + // ctx.fillText('ATTACK', centerX, centerY - UNIT_RADIUS - 15); } } } @@ -2270,10 +2270,10 @@ function drawUnits(model, ctx) { if (currentUnit && currentUnit.id === sanitizedUnit.id) { // Draw turn indicator ring ctx.strokeStyle = sanitizedUnit.owner === 'player' ? '#00FF00' : '#FF0000'; - // ctx.lineWidth = 3; - // ctx.beginPath(); - // ctx.arc(centerX, centerY, UNIT_RADIUS + 8, 0, Math.PI * 2); - // ctx.stroke(); + ctx.lineWidth = 3; + ctx.beginPath(); + ctx.arc(centerX, centerY, UNIT_RADIUS + 8, 0, Math.PI * 2); + ctx.stroke(); // Draw turn indicator text ctx.fillStyle = sanitizedUnit.owner === 'player' ? '#00FF00' : '#FF0000'; |