mirror of
https://github.com/Sheldan/canvas.git
synced 2026-04-25 06:44:46 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user