Files
test1/game/enemies/OldEmployee.ts

15 lines
526 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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
// 老员工比普通怪略大0.85 个格子)
this.imageSprite.setDisplaySize(this.cellW * 0.85, this.cellW * 0.85)
}
getQuote(): string { return getRandomQuote('OldEmployee') }
}