diff --git a/src/box.js b/src/box.js index aea9e40..44954c3 100644 --- a/src/box.js +++ b/src/box.js @@ -38,7 +38,7 @@ class Box { jump(_x, _y) { // Put x between -1 and 1 - let x = (_x - 0.5) * 2; + let x = (_x - this.x) * 2; let y = _y; if (this.jumpCounter > 0) {