From cf3b41cc7c6fad900912d5c19886dff3f9c3d2d6 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Thu, 28 Nov 2024 19:00:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20towerboss=E7=B1=BB=E5=9E=8B=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugin/boss/towerBoss.ts | 6 +++--- src/plugin/fx/pop.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugin/boss/towerBoss.ts b/src/plugin/boss/towerBoss.ts index f6c874c..d8ba539 100644 --- a/src/plugin/boss/towerBoss.ts +++ b/src/plugin/boss/towerBoss.ts @@ -22,7 +22,7 @@ import { import { IStateDamageable } from '@/game/state/interface'; import { HeroRenderer } from '@/core/render/preset/hero'; import { controller } from '@/module/weather'; -import { PopText } from '../fx/pop'; +import { Pop, PopText } from '../fx/pop'; Mota.require('var', 'loading').once('coreInit', () => { const shader = new Shader(); @@ -78,7 +78,7 @@ export class TowerBoss extends BarrageBoss { /** 楼层渲染容器 */ private mapDraw: Container; /** 伤害弹出 */ - pop: PopText; + pop: Pop; /** 每个阶段的进度,具体定义参考 ai 函数开头 */ private stageProgress: number = 0; @@ -131,7 +131,7 @@ export class TowerBoss extends BarrageBoss { const render = MotaRenderer.get('render-main')!; this.group = render.getElementById('layer-main') as LayerGroup; this.mapDraw = render.getElementById('map-draw') as Container; - this.pop = render.getElementById('pop-main') as PopText; + this.pop = render.getElementById('pop-main') as Pop; this.healthBar.init(); this.word.init(); diff --git a/src/plugin/fx/pop.ts b/src/plugin/fx/pop.ts index f53a6bc..f2c9fba 100644 --- a/src/plugin/fx/pop.ts +++ b/src/plugin/fx/pop.ts @@ -19,7 +19,7 @@ function parabola(input: number): [number, number] { return [x, x ** 2 / 20 - 3 * x]; } -class Pop extends RenderItem { +export class Pop extends RenderItem { private popList: Set = new Set(); private delegation: number = 0;