make the npcs less annoying

This commit is contained in:
biglyderv 2024-11-25 14:14:20 -05:00
parent 656f06291c
commit 3ce6ded308
2 changed files with 6 additions and 2 deletions

View file

@ -24,8 +24,11 @@ class NPC {
i++;
}
this.vel.x += (rEntity.pos.x - this.pos.x) * 0.0001;
this.vel.y += (rEntity.pos.y - this.pos.y) * 0.0001;
this.vel.x += (rEntity.pos.x - this.pos.x) * 0.0002;
this.vel.y += (rEntity.pos.y - this.pos.y) * 0.0002;
this.vel.x *= 0.995;
this.vel.y *= 0.995;
this.pos.x += this.vel.x;
this.pos.y += this.vel.y;