i am stupid

This commit is contained in:
biglyderv 2024-11-25 14:14:20 -05:00
parent af0a93657b
commit 7fbe113061
2 changed files with 3 additions and 1 deletions

View file

@ -38,6 +38,8 @@ Player.prototype.bump = function () {
player.dir *= -1;
}
console.log(player.ticks)
player.vel.x *= 0.3;
player.vel.y *= 0.3;

View file

@ -82,7 +82,7 @@ class Game extends GameBasic {
this.entities.push(this.player);
} else {
player.bump();
this.ws.send(JSON.stringify({ vel, dir, you }));
this.sync();
}
}
sync() {