diff --git a/public/static/javascript/controller/controller.js b/public/static/javascript/controller/controller.js index 96b8e76..dd2b119 100644 --- a/public/static/javascript/controller/controller.js +++ b/public/static/javascript/controller/controller.js @@ -290,8 +290,8 @@ if (typeof io === 'undefined') { var sensorsMode = false; $(window).on("deviceorientation", function (event) { if (sensorsMode) { - var x = (event.originalEvent.beta + 70) * 2.3; - var y = (event.originalEvent.gamma*-1 + 60) * 2.3 + 50; + var x = (event.originalEvent.beta + 86) * 2.3; + var y = (event.originalEvent.gamma*-1 + 10) * 2.3 + 50; updatePlayerXY(x, y); } });