Better interaction

This commit is contained in:
Thomas Forgione 2018-08-21 14:11:34 +02:00
parent 64a64f2524
commit 76d77b4fac
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 1 additions and 1 deletions

View File

@ -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) {