huge optimization to network
This commit is contained in:
parent
9c2deb3dcb
commit
8cc663d9a7
2 changed files with 5 additions and 3 deletions
|
@ -12,10 +12,10 @@ class Shooter extends Entity {
|
|||
this.immortal = true;
|
||||
|
||||
this.serverProps = [
|
||||
'type', 'pos', 'vel', 'you', 'immortal', 'dir'
|
||||
'type', 'pos', 'vel', 'immortal', 'dir'
|
||||
];
|
||||
|
||||
this.dir = Math.random() * 696969;
|
||||
this.dir = Math.random() * 6969;
|
||||
}
|
||||
handleTick(game) {
|
||||
this.ticks++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue