Skip to content

Commit

Permalink
Moves defining the limit into the top of the file because it made the…
Browse files Browse the repository at this point in the history
… game unplayable on mobile. Oops!
  • Loading branch information
Auroriax committed Sep 12, 2019
1 parent 0027fad commit 1d90fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 1d90fde

Please sign in to comment.