Better interaction

This commit is contained in:
2018-08-21 14:11:34 +02:00
parent 64a64f2524
commit 76d77b4fac
+1 -1
View File
@@ -38,7 +38,7 @@ class Box {
jump(_x, _y) { jump(_x, _y) {
// Put x between -1 and 1 // Put x between -1 and 1
let x = (_x - 0.5) * 2; let x = (_x - this.x) * 2;
let y = _y; let y = _y;
if (this.jumpCounter > 0) { if (this.jumpCounter > 0) {