bump sync fix for real
This commit is contained in:
parent
0a74708617
commit
fab37359f1
3 changed files with 14 additions and 12 deletions
|
@ -34,10 +34,12 @@ function Player(you, isPlayer) {
|
|||
Player.prototype.bump = function () {
|
||||
let player = this;
|
||||
|
||||
if (player.ticks < 10) {
|
||||
if (player.ticks < 7) {
|
||||
player.dir *= -1;
|
||||
}
|
||||
|
||||
console.log(player.ticks)
|
||||
|
||||
player.vel.x *= 0.3;
|
||||
player.vel.y *= 0.3;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue