From 1d90fde680ed3a19004309452c7a076e644ead0c Mon Sep 17 00:00:00 2001 From: Amazingcookie Date: Thu, 12 Sep 2019 23:22:49 +0200 Subject: [PATCH] Moves defining the limit into the top of the file because it made the game unplayable on mobile. Oops! --- game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.js b/game.js index 4a92eace..e0d98681 100644 --- a/game.js +++ b/game.js @@ -2,6 +2,7 @@ x=game.getContext`2d`; const M=Math; const V="visible"; const H="hidden"; +const limit = M.tan(45 * 1.5 / 180 * M.PI); //Global variables const TAU = Zdog.TAU; @@ -1026,7 +1027,6 @@ function HtmlLoaded() { id("game").focus(); - const limit = M.tan(45 * 1.5 / 180 * M.PI); const gestureZone = id('game'); gestureZone.addEventListener('touchstart', function(event) {