Add six new enemies and spawn enemies within view

This commit is contained in:
2026-08-20 10:54:51 +02:00
parent 2bffefb02c
commit e6a370f952
10 changed files with 1524 additions and 13 deletions
+5 -1
View File
@@ -4,6 +4,9 @@ import { Enemy } from './Enemy';
import { Ghost } from './Ghost';
import { Slime } from './Slime';
import { Spider } from './Spider';
import { Archer } from './Archer';
import { Shaman } from './Shaman';
import { Turtle } from './Turtle';
import { playSound } from './SoundManager';
const MAX_HEALTH = 13000;
@@ -430,7 +433,8 @@ export class Necromancer extends Enemy {
private startSummon(game: Game) {
const count = this.enraged ? SUMMON_COUNT_2 : SUMMON_COUNT;
const types = [() => new Ghost(), () => new Slime(), () => new Spider()];
const types = [() => new Ghost(), () => new Slime(), () => new Spider(),
() => new Archer(), () => new Shaman(), () => new Turtle()];
for (let i = 0; i < count; i++) {
const a = Math.random() * Math.PI * 2;
const r = 5 + Math.random() * 8;