From e53648c594d3deb4a972dcdebcabc92553befbeb Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sat, 18 Nov 2017 14:08:33 +0100 Subject: [PATCH] Update: CC - Touch Move (c55930et90.js) 133 bytes modified --- c55930et90.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/c55930et90.js b/c55930et90.js index bf0e138..721483a 100644 --- a/c55930et90.js +++ b/c55930et90.js @@ -7,14 +7,20 @@ if (!this.initialized) { this.x = window.innerWidth / 2; this.y = window.innerHeight / 2; + var sensitivity = 0.1; + 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.down; this.y -= touch.up; +this.y += touch.down; if (this.x < 0) { this.x = 0;