Update life.js

This commit is contained in:
Kyle
2019-08-16 16:47:32 -07:00
parent e446c1a1fd
commit f3e286bbfe

View File

@@ -402,7 +402,7 @@ function singleTap(targetPlayerBox) {
function clockCheck(tappedPlayerBox) { function clockCheck(tappedPlayerBox) {
if (tappedPlayerBox.touchId != 0.5) { if (tappedPlayerBox.touchId != 0.5) {
tappedPlayerBox.life += tappedPlayerBox.direction tappedPlayerBox.life += tappedPlayerBox.direction
drawPlayerBox(tappedPlayerBox) drawPlayerBox(tappedPlayerBox.id)
if (tappedPlayerBox.holdTime >= 300) { if (tappedPlayerBox.holdTime >= 300) {
setTimeout(clockCheck.bind(null, tappedPlayerBox), 10) setTimeout(clockCheck.bind(null, tappedPlayerBox), 10)
} else if (tappedPlayerBox.holdTime >= 50) { } else if (tappedPlayerBox.holdTime >= 50) {
@@ -564,4 +564,4 @@ function heldDown() {
loop = setTimeout(heldDown, 100) loop = setTimeout(heldDown, 100)
} }
} }
//Updated!!! Are we there yet? Ooh! Is this it? //Updated!!! Are we there yet? Ooh! Is this it? ermagerd?