From 0a74708617e17ffa9090244e4d90f43e3ee3c24a Mon Sep 17 00:00:00 2001 From: biglyderv Date: Mon, 25 Nov 2024 14:14:20 -0500 Subject: [PATCH] fix bump streaming --- common/player.js | 2 -- game.js | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/common/player.js b/common/player.js index 9a106ab..5b7c68e 100644 --- a/common/player.js +++ b/common/player.js @@ -38,8 +38,6 @@ Player.prototype.bump = function () { player.dir *= -1; } - console.log(player.ticks) - player.vel.x *= 0.3; player.vel.y *= 0.3; diff --git a/game.js b/game.js index 9e79a8d..099ef35 100644 --- a/game.js +++ b/game.js @@ -9,8 +9,8 @@ class Game extends GameBasic { let { entities } = this; let entList = []; for (let entity of entities) { - let { pos, vel, rot, dir, health, headCount, you, camera } = entity; - entList.push({ pos, vel, rot, dir, health, headCount, you, camera }); + let { pos, vel, rot, dir, health, headCount, you, camera, ticks } = entity; + entList.push({ pos, vel, rot, dir, health, headCount, you, camera, ticks }); } if (entList.length == 0) return;