Update life.js

This commit is contained in:
Kyle
2019-08-15 18:33:21 -07:00
parent 1ef832297e
commit d48e8b5f50

View File

@@ -242,11 +242,9 @@ function updatePlayerBoxes() {
// alert("I clicked on " + n + "!") // alert("I clicked on " + n + "!")
// alert("Their life total is now " + playerList[n - 1].life) // alert("Their life total is now " + playerList[n - 1].life)
drawPlayerBox(n) drawPlayerBox(n)
break
} else { } else {
playerList[n - 1].firection = "none" playerList[n - 1].firection = "none"
playerList[n - 1].holdTime = 0 playerList[n - 1].holdTime = 0
continue
} }
} }
if (i == touchX.length - 1) { if (i == touchX.length - 1) {
@@ -255,7 +253,7 @@ function updatePlayerBoxes() {
} }
} }
} }
setTimeout(function() {alert(touchX[0] + ", " + touchY[0] + " & " + touchX[1] + ", " + touchY[1])}, 1000) // setTimeout(function() {alert(touchX[0] + ", " + touchY[0] + " & " + touchX[1] + ", " + touchY[1])}, 1000)
} }
function clearTimers() { function clearTimers() {
for (var i = 1; i <= playerList.length; i ++) { for (var i = 1; i <= playerList.length; i ++) {