make npcs less annoying
This commit is contained in:
parent
7d83d31746
commit
276e11fb49
6 changed files with 45 additions and 30 deletions
2
game.js
2
game.js
|
@ -99,7 +99,7 @@ class Game extends GameBasic {
|
|||
that.entities = [];
|
||||
|
||||
for (let i = 0; i < 20; i++) {
|
||||
that.entities.push(new NPC())
|
||||
that.entities.push(new NPC(false,that))
|
||||
}
|
||||
|
||||
setInterval(function () { that.sync(false) }, 1000 / 10);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue