diff --git a/common/shooter.js b/common/shooter.js index a5cf30b..12adbc0 100644 --- a/common/shooter.js +++ b/common/shooter.js @@ -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++; diff --git a/game.js b/game.js index 3fbe7cd..fefff9f 100644 --- a/game.js +++ b/game.js @@ -181,7 +181,9 @@ class Game extends GameBasic { na.push(JSON.stringify([this.width, this.height])) - client.send(`[${na.join(',')}]`); + let dd = `[${na.join(',')}]`; + + client.send(dd); wsEnt.isYou = false; }