fix bump streaming
This commit is contained in:
parent
3ea1430db7
commit
0a74708617
2 changed files with 2 additions and 4 deletions
|
@ -38,8 +38,6 @@ Player.prototype.bump = function () {
|
||||||
player.dir *= -1;
|
player.dir *= -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(player.ticks)
|
|
||||||
|
|
||||||
player.vel.x *= 0.3;
|
player.vel.x *= 0.3;
|
||||||
player.vel.y *= 0.3;
|
player.vel.y *= 0.3;
|
||||||
|
|
||||||
|
|
4
game.js
4
game.js
|
@ -9,8 +9,8 @@ class Game extends GameBasic {
|
||||||
let { entities } = this;
|
let { entities } = this;
|
||||||
let entList = [];
|
let entList = [];
|
||||||
for (let entity of entities) {
|
for (let entity of entities) {
|
||||||
let { pos, vel, rot, dir, health, headCount, you, camera } = entity;
|
let { pos, vel, rot, dir, health, headCount, you, camera, ticks } = entity;
|
||||||
entList.push({ pos, vel, rot, dir, health, headCount, you, camera });
|
entList.push({ pos, vel, rot, dir, health, headCount, you, camera, ticks });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entList.length == 0) return;
|
if (entList.length == 0) return;
|
||||||
|
|
Loading…
Reference in a new issue