Add Golem boss wave 10 with clear-arena requirement
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import * as THREE from 'three';
|
||||
import type { Game } from './Game';
|
||||
import { Brute } from './Brute';
|
||||
|
||||
export class Golem extends Brute {
|
||||
constructor() {
|
||||
super();
|
||||
this.health = 800;
|
||||
this.speed = 3;
|
||||
this.xp = 80;
|
||||
this.contactDps = 50;
|
||||
this.contactRadius = 3.4;
|
||||
this.guaranteedDrop = true;
|
||||
|
||||
this.model.scale.setScalar(2.1);
|
||||
|
||||
// Crown
|
||||
const crownMat = new THREE.MeshToonMaterial({ color: 0xffcc33 });
|
||||
const crown = new THREE.Mesh(
|
||||
new THREE.ConeGeometry(0.3, 0.4, 8, 1, true),
|
||||
crownMat
|
||||
);
|
||||
crown.position.y = 2.25;
|
||||
crown.castShadow = true;
|
||||
this.registerFadeMesh(crown);
|
||||
this.model.add(crown);
|
||||
}
|
||||
|
||||
protected onDeath(_game: Game) {
|
||||
this.beginFadeDeath();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user