mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-28 13:51:50 -05:00
Update life.js
This commit is contained in:
@@ -372,6 +372,7 @@ function endTouch() {
|
||||
|
||||
|
||||
function singleTap() {
|
||||
console.log("a tap has occurred!")
|
||||
var playerBoxBounds = event.target.getBoundingClientRect()
|
||||
var tappedPlayerBox = playerList[event.target.customVarID - 1]
|
||||
var lifeAdjust = 0
|
||||
@@ -394,6 +395,7 @@ function singleTap() {
|
||||
direction = lifeAdjust + ""
|
||||
tappedPlayerBox.life += lifeAdjust
|
||||
drawPlayerBox(tappedPlayerBox.id)
|
||||
console.log(tappedPlayerBox.id)
|
||||
}
|
||||
|
||||
|
||||
@@ -548,4 +550,4 @@ function heldDown() {
|
||||
loop = setTimeout(heldDown, 100)
|
||||
}
|
||||
}
|
||||
//Updated for real
|
||||
//Updated for real
|
||||
|
Reference in New Issue
Block a user