optimizations, NPC movement fixes again

This commit is contained in:
biglyderv 2024-11-25 14:14:20 -05:00
parent e584361465
commit 1e735c2d3c
3 changed files with 25 additions and 21 deletions

View file

@ -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() {