diff --git a/src/box.js b/src/box.js index 2c4ff2a..7755a49 100644 --- a/src/box.js +++ b/src/box.js @@ -27,6 +27,7 @@ class Box { collide(y) { this.y = y; + this.speedX = 0; this.speedY = 0; this.jumpCounter = MAX_JUMP; }