Update life.js

This commit is contained in:
Kyle
2019-08-10 17:14:57 -07:00
parent 332155ef93
commit 210e0e144f

View File

@@ -148,7 +148,6 @@ function playerBox(playerBoxID, canvasRotation, wide) {
document.addEventListener("mouseup", decoyMouseUpFunction, true) document.addEventListener("mouseup", decoyMouseUpFunction, true)
} }
function decoyMouseDownFunction() { function decoyMouseDownFunction() {
console.log("IT'S STILL CLICKING")
mouseDownPlayerBox(this, event.clientX, event.clientY) mouseDownPlayerBox(this, event.clientX, event.clientY)
} }
function decoyMouseUpFunction() { function decoyMouseUpFunction() {
@@ -224,7 +223,6 @@ function updateBackgroundColor(color) {
function switchToTouchEvents() { function switchToTouchEvents() {
console.log("switching!")
window.removeEventListener("touchstart", switchToTouchEvents, true) window.removeEventListener("touchstart", switchToTouchEvents, true)
document.removeEventListener("mouseup", decoyMouseUpFunction, true) document.removeEventListener("mouseup", decoyMouseUpFunction, true)
for (var i = 1; i <= playerCount; i++) { for (var i = 1; i <= playerCount; i++) {
@@ -238,6 +236,4 @@ function switchToTouchEvents() {
mouseUpPlayerBox(this) mouseUpPlayerBox(this)
}, true) }, true)
} }
} }
// setTimeout(function(){switchToTouchEvents()}, 2000)