Update: CC - Touch Move (c55930et90.js) 4 bytes modified

beta.r3js.org
-=yb4f310 2017-11-18 14:09:49 +01:00
parent e53648c594
commit fa9b44dc7f
1 changed files with 4 additions and 9 deletions

View File

@ -12,15 +12,10 @@ if (!this.initialized) {
this.initialized = true;
}
touch.left *= sensitivity;
touch.right *= sensitivity;
touch.up *= sensitivity;
touch.down *= sensitivity;
this.x -= touch.left;
this.x += touch.right;
this.y -= touch.up;
this.y += touch.down;
this.x -= Math.round(touch.left * sensitivity);
this.x += Math.round(touch.right * sensitivity);
this.y -= Math.round(touch.up * sensitivity);
this.y += Math.round(touch.down * sensitivity);
if (this.x < 0) {
this.x = 0;