i am stupid

This commit is contained in:
biglyderv 2024-09-29 18:46:23 -04:00
parent 17720f0f1b
commit 208df7226c
No known key found for this signature in database
GPG key ID: 33AC87E9ACE66954
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() {