feat(game/enemies): 完善怪物头顶语录飘字系统,集成语录数据文件,添加跟随移动和淡出动画

This commit is contained in:
Cloud Bot
2026-03-21 08:14:53 +00:00
parent f6694544f0
commit d13e17ffc5
5 changed files with 22 additions and 19 deletions

View File

@@ -1,11 +1,6 @@
import type Phaser from 'phaser'
import { EnemyBase, type PathPoint } from './EnemyBase'
const QUOTES = [
'我来教大家怎么做事',
'你们缺乏战略眼光',
'这不是执行力的问题',
]
import { getRandomQuote } from '../data/quotes'
export class BossVP extends EnemyBase {
private skillTimer: number = 20000
@@ -108,6 +103,6 @@ export class BossVP extends EnemyBase {
}
getQuote(): string {
return QUOTES[Math.floor(Math.random() * QUOTES.length)]
return getRandomQuote('BossVP')
}
}