diff --git a/bird.js b/bird.js index f6e1098..ee6f071 100644 --- a/bird.js +++ b/bird.js @@ -12,7 +12,7 @@ class Bird { this.x = 64; this.gravity = 0.6; - this.lift = -15; + this.lift = -7; this.velocity = 0; this.icon = birdSprite; @@ -26,12 +26,11 @@ class Bird { } up() { - this.velocity += this.lift; + this.velocity = this.lift; } update() { this.velocity += this.gravity; - this.velocity *= 0.9; this.y += this.velocity; if (this.y >= height - this.height / 2) {