forked from GithubMirrors/cardconjurer
		
	Update life.js
This commit is contained in:
		@@ -91,7 +91,7 @@ function playerBox(playerBoxID, canvasRotation, wide) {
 | 
				
			|||||||
	this.canvas = document.createElement("canvas")
 | 
						this.canvas = document.createElement("canvas")
 | 
				
			||||||
	this.direction = "false"
 | 
						this.direction = "false"
 | 
				
			||||||
	this.holdTime = 0
 | 
						this.holdTime = 0
 | 
				
			||||||
//    this.touchId = 0.5
 | 
					    this.touchId = 0.5
 | 
				
			||||||
	this.color = "#222222"
 | 
						this.color = "#222222"
 | 
				
			||||||
	this.textColor = "#ffffff"
 | 
						this.textColor = "#ffffff"
 | 
				
			||||||
	this.image = new Image()
 | 
						this.image = new Image()
 | 
				
			||||||
@@ -340,7 +340,7 @@ function switchToTouchEvents() {
 | 
				
			|||||||
	window.addEventListener("touchend", endTouch, true)
 | 
						window.addEventListener("touchend", endTouch, true)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
function startTouch() {
 | 
					function startTouch() {
 | 
				
			||||||
    event.changedTouches[0].target.touchId = event.changedTouches[0].identifier
 | 
					    playerList[event.changedTouches[0].target.customVarID].touchId = event.changedTouches[0].identifier
 | 
				
			||||||
	moveTouch()
 | 
						moveTouch()
 | 
				
			||||||
    clicking = true
 | 
					    clicking = true
 | 
				
			||||||
    singleTap(event.changedTouches[0].target)
 | 
					    singleTap(event.changedTouches[0].target)
 | 
				
			||||||
@@ -358,7 +358,7 @@ function endTouch() {
 | 
				
			|||||||
            playerList[i - 1].touchId = 0.5
 | 
					            playerList[i - 1].touchId = 0.5
 | 
				
			||||||
            console.log(i + " no longer touching")
 | 
					            console.log(i + " no longer touching")
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            console.log(playerList[i - 1].touchId + " is not " + event.changedTouches[0].identifier)
 | 
					//            console.log(playerList[i - 1].touchId + " is not " + event.changedTouches[0].identifier)
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
	moveTouch()
 | 
						moveTouch()
 | 
				
			||||||
@@ -553,4 +553,4 @@ function heldDown() {
 | 
				
			|||||||
		loop = setTimeout(heldDown, 100)
 | 
							loop = setTimeout(heldDown, 100)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
//Updated!!! Are we there yet?
 | 
					//Updated!!! Are we there yet? Ooh!
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user