feat(game/enemies): 完善怪物头顶语录飘字系统,集成语录数据文件,添加跟随移动和淡出动画
This commit is contained in:
@@ -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')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user