19 lines
581 B
TypeScript
19 lines
581 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[],
|
|
speedMultiplier: number = 1.0,
|
|
hpMultiplier: number = 1.0
|
|
) {
|
|
super(scene, pathPoints, 150, 50, 8, 30, 'enemy-old', speedMultiplier, hpMultiplier)
|
|
this.shieldCount = 3
|
|
this.imageSprite.setDisplaySize(this.cellW * 0.85, this.cellW * 0.85)
|
|
}
|
|
|
|
getQuote(): string { return getRandomQuote('OldEmployee') }
|
|
}
|