fix(game): 修复底部塔面板不可见问题,改用React层实现,并用AI素材替换Graphics像素块
This commit is contained in:
@@ -4,20 +4,7 @@ import { getRandomQuote } from '../data/quotes'
|
||||
|
||||
export class FreshGraduate extends EnemyBase {
|
||||
constructor(scene: Phaser.Scene, pathPoints: PathPoint[]) {
|
||||
super(scene, pathPoints, 30, 120, 2, 10)
|
||||
this.drawSprite()
|
||||
}
|
||||
|
||||
drawSprite(): void {
|
||||
if (!this.sprite) return
|
||||
this.sprite.clear()
|
||||
this.sprite.fillStyle(0x86efac, 1)
|
||||
this.sprite.fillCircle(0, 0, 8)
|
||||
this.sprite.setDepth(10)
|
||||
this.sprite.setPosition(this.x, this.y)
|
||||
}
|
||||
|
||||
getQuote(): string {
|
||||
return getRandomQuote('FreshGraduate')
|
||||
super(scene, pathPoints, 30, 120, 2, 10, 'enemy-fresh')
|
||||
}
|
||||
getQuote(): string { return getRandomQuote('FreshGraduate') }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user