fix: 特殊战在缩放后会丢失危险提示

This commit is contained in:
AncTe committed 2024-11-23 12:05:45 +08:00
1 parent 6f5755b8cd
commit 05d383f075
3 files changed
+5 -6

No files matched your search

-5
View File
@@ -882,11 +882,6 @@ export class Shadow {
// canvas
const canvas = this.canvas;
canvas.id = `shadow`;
canvas.style.display = 'block';
canvas.style.position = 'absolute';
canvas.style.pointerEvents = 'none';
canvas.style.zIndex = Z_INDEX.toString();
// Locations
this.locations = {
+4
View File
@@ -154,6 +154,8 @@ export class ArrowProjectile extends Projectile<TowerBoss> {
for (let i = 0; i < 15; i++) {
ctxVer.fillRect(2, i * 32 + 2, 28, 28);
}
hor.freeze();
ver.freeze();
}
/**
@@ -643,6 +645,8 @@ export class ThunderBallProjectile extends Projectile<TowerBoss> {
for (let i = 0; i < 15; i++) {
ctxVer.fillRect(2, i * 32 + 2, 28, 28);
}
hor.freeze();
ver.freeze();
}
/**