mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-06-09 00:38:00 +08:00
feat: 优化boss战表现
This commit is contained in:
parent
31605615ce
commit
63a21c8afa
@ -806,8 +806,12 @@ export class ThunderBallProjectile extends Projectile<TowerBoss> {
|
|||||||
const hor = ThunderBallProjectile.horizontal!.canvas;
|
const hor = ThunderBallProjectile.horizontal!.canvas;
|
||||||
const ver = ThunderBallProjectile.vertical!.canvas;
|
const ver = ThunderBallProjectile.vertical!.canvas;
|
||||||
ctx.save();
|
ctx.save();
|
||||||
ctx.globalAlpha = 1;
|
if (this.time > 1000 && this.time < 3000) {
|
||||||
if (w > 0 && h > 0) {
|
ctx.globalAlpha = (3000 - this.time) / 2000;
|
||||||
|
} else {
|
||||||
|
ctx.globalAlpha = 1;
|
||||||
|
}
|
||||||
|
if (w > 0 && h > 0 && this.time < 3000) {
|
||||||
switch (this.direction) {
|
switch (this.direction) {
|
||||||
case ProjectileDirection.BottomToTop:
|
case ProjectileDirection.BottomToTop:
|
||||||
case ProjectileDirection.TopToBottom: {
|
case ProjectileDirection.TopToBottom: {
|
||||||
@ -821,6 +825,7 @@ export class ThunderBallProjectile extends Projectile<TowerBoss> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ctx.globalAlpha = 1;
|
||||||
ctx.fillStyle = '#fff';
|
ctx.fillStyle = '#fff';
|
||||||
ctx.shadowBlur = 8;
|
ctx.shadowBlur = 8;
|
||||||
ctx.shadowColor = '#62c8f4';
|
ctx.shadowColor = '#62c8f4';
|
||||||
|
Loading…
Reference in New Issue
Block a user