case 'spiky': ctx.fillStyle = '#8B008B'; ctx.fillRect(x, y, enemy.width, enemy.height); // Draw spikes all around ctx.fillStyle = '#000'; for (let i = 0; i < 4; i++) { ctx.beginPath(); ctx.moveTo(x + i * 7 + 3, y); ctx.lineTo(x + i * 7 + 6, y - 5); ctx.lineTo(x + i * 7 + 9, y); ctx.fill(); // Bottom spikes ctx.beginPath(); ctx.moveTo(x + i * 7 + 3, y + enemy.height); ctx.lineTo(x + i * 7 + 6, y + enemy.height + 5); ctx.lineTo(x + i * 7 + 9, y + enemy.height); ctx.fill(); } ctx.fillStyle = '#FF0000'; ctx.fillRect(x + 8, y + 8, 3, 3); ctx.fillRect(x + 18, y + 8, 3, 3); break;