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

@@ -107,9 +107,9 @@ docReady(function () {
world = new World(player, ctx, new Vector(window.innerWidth, window.innerHeight));
state = new WorldState();
BasicEnemy.spawnBasicEnemy(world)
ShootingEnemy.spawnShootingEnemy(world, new Vector(350, 350))
setInterval(() => {
BasicEnemy.spawnBasicEnemy(world)
ShootingEnemy.spawnShootingEnemy(world)
}, 1_000)