diff options
Diffstat (limited to 'html')
-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'; |