Add six new enemies and spawn enemies within view
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user