fix bump streaming

This commit is contained in:
biglyderv 2024-09-29 22:37:33 -04:00
parent 7a5af8dc1c
commit 6c05369ef8
No known key found for this signature in database
GPG key ID: 33AC87E9ACE66954
2 changed files with 2 additions and 4 deletions

View file

@ -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;

View file

@ -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;