significant optimzations
This commit is contained in:
parent
3ce6ded308
commit
37b516faee
5 changed files with 71 additions and 20 deletions
|
@ -13,6 +13,10 @@ class NPC {
|
|||
this.type = 'NPC';
|
||||
|
||||
this.immortal = true;
|
||||
|
||||
this.serverProps = [
|
||||
'type', 'pos','vel','you','immortal'
|
||||
];
|
||||
}
|
||||
handleTick(game) {
|
||||
let { entities } = game;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue