feat(game/enemies): 完善怪物头顶语录飘字系统,集成语录数据文件,添加跟随移动和淡出动画
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import type Phaser from 'phaser'
|
||||
import { EnemyBase, type PathPoint } from './EnemyBase'
|
||||
|
||||
const QUOTES = ['求转正!', '我愿意加班!', '卷!卷!卷!']
|
||||
import { getRandomQuote } from '../data/quotes'
|
||||
|
||||
export class FreshGraduate extends EnemyBase {
|
||||
constructor(scene: Phaser.Scene, pathPoints: PathPoint[]) {
|
||||
@@ -19,6 +18,6 @@ export class FreshGraduate extends EnemyBase {
|
||||
}
|
||||
|
||||
getQuote(): string {
|
||||
return QUOTES[Math.floor(Math.random() * QUOTES.length)]
|
||||
return getRandomQuote('FreshGraduate')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user