Better interaction
This commit is contained in:
parent
64a64f2524
commit
76d77b4fac
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue