mirror of
https://github.com/Sheldan/canvas.git
synced 2026-04-15 04:02:52 +00:00
survivors: also spawning basic enemy continuously and randomly
better dynamic placement of stat labels in the player info
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user