From 140448fd0ec0b09be8d8fc02f242043fe0994136 Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Sat, 10 Aug 2019 15:50:33 -0700 Subject: [PATCH] life --- data/life/life.js | 11 ++--------- life.html | 4 +--- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/data/life/life.js b/data/life/life.js index 50f96f0c..98c61ece 100644 --- a/data/life/life.js +++ b/data/life/life.js @@ -145,6 +145,7 @@ function playerBox(playerBoxID, canvasRotation, wide) { document.getElementById("mainGrid").appendChild(this.canvas) this.canvas.addEventListener("mousedown", function() { mouseDownPlayerBox(this, event.clientX, event.clientY) + alert("It's still clicking!") }) document.addEventListener("mouseup", function() { mouseUpPlayerBox(this) @@ -222,16 +223,8 @@ function updateBackgroundColor(color) { } -//Wake lock! -var noSleep = new NoSleep(); -function enableNoSleep() { - noSleep.enable(); - document.removeEventListener('touchstart', enableNoSleep, false); -} -document.addEventListener('touchstart', enableNoSleep, false); - - function switchToTouchEvents() { + alert("switching to touch events!") document.removeEventListener("mousedown") document.removeEventListener("mouseup") document.addEventListener("touchstart", function() { diff --git a/life.html b/life.html index 7a57a496..f98cbb44 100644 --- a/life.html +++ b/life.html @@ -48,12 +48,10 @@ - -
Number of Players:
-
+
Starting Life Total: