feat: dont show armor numbers after wave 5
This commit is contained in:
+10
-8
@@ -114,14 +114,16 @@ class Enemy {
|
|||||||
barH,
|
barH,
|
||||||
);
|
);
|
||||||
|
|
||||||
ctx.font = `${S.armorBarFont}px "Courier New", monospace`;
|
if (wave <= 5) {
|
||||||
ctx.fillStyle = flash ? CONFIG.colors.white : CONFIG.colors.heavy;
|
ctx.font = `${S.armorBarFont}px "Courier New", monospace`;
|
||||||
ctx.textAlign = "center";
|
ctx.fillStyle = flash ? CONFIG.colors.white : CONFIG.colors.heavy;
|
||||||
ctx.fillText(
|
ctx.textAlign = "center";
|
||||||
`${CONFIG.texts.armorLabel} ${remainingLayers}/${totalLayers}`,
|
ctx.fillText(
|
||||||
this.x,
|
`${CONFIG.texts.armorLabel} ${remainingLayers}/${totalLayers}`,
|
||||||
this.y - boxH / 2 - S.enemyArmorLabelOffset,
|
this.x,
|
||||||
);
|
this.y - boxH / 2 - S.enemyArmorLabelOffset,
|
||||||
|
);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ctx.strokeRect(this.x - boxW / 2, this.y - boxH / 2, boxW, boxH);
|
ctx.strokeRect(this.x - boxW / 2, this.y - boxH / 2, boxW, boxH);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user