survivors: also spawning basic enemy continuously and randomly

better dynamic placement of stat labels in the player info
This commit is contained in:
Sheldan
2025-08-30 11:01:05 +02:00
parent a52754ce0d
commit 39da3d8abd
3 changed files with 25 additions and 7 deletions

View File

@@ -89,7 +89,7 @@ export class BasicEnemy extends Enemy {
static generateBasicEnemy(world: World, position?: Vector): BasicEnemy {
if(position === undefined) {
position = new Vector(250, 250)
position = world.randomPlace()
}
let basicEnemy = new BasicEnemy(position);
basicEnemy.size = 5;