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