Files
test1/game/enemies/OldEmployee.ts

16 lines
526 B
TypeScript

import type Phaser from 'phaser'
import { EnemyBase, type PathPoint } from './EnemyBase'
import { getRandomQuote } from '../data/quotes'
export class OldEmployee extends EnemyBase {
constructor(scene: Phaser.Scene, pathPoints: PathPoint[]) {
super(scene, pathPoints, 150, 50, 8, 30, 'enemy-old')
this.shieldCount = 3
// 老员工图片稍大
const scale = Math.min(this.cellW, this.cellH) / 128 * 0.9
this.imageSprite.setScale(scale)
}
getQuote(): string { return getRandomQuote('OldEmployee') }
}