optimizations, NPC movement fixes again
This commit is contained in:
parent
e584361465
commit
1e735c2d3c
3 changed files with 25 additions and 21 deletions
|
@ -16,9 +16,12 @@ class GameBasic {
|
|||
}
|
||||
main() {
|
||||
let { entities } = this;
|
||||
let that = this;
|
||||
|
||||
for (let ent of entities) {
|
||||
ent.handleTick(this);
|
||||
(async function() {
|
||||
ent.handleTick(that)
|
||||
})();
|
||||
}
|
||||
}
|
||||
init() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue