mirror of
				https://github.com/Investigamer/cardconjurer.git
				synced 2025-10-30 06:40:26 -05:00 
			
		
		
		
	Update life.js
This commit is contained in:
		| @@ -78,20 +78,20 @@ function startGame() { | ||||
| 	if (playerCount == 2 || playerCount == 4) { | ||||
| 		rowCount -= 1 | ||||
| 	} | ||||
|     console.log("Row count: " + rowCount) | ||||
| //    console.log("Row count: " + rowCount) | ||||
| 	if (isFullscreen) { | ||||
| 		rowHeight = screen.height / rowCount - 2 | ||||
|         console.log("Full screen, rowHeight: " + rowHeight) | ||||
|         console.log("screen.height: " + screen.height) | ||||
| //        console.log("Full screen, rowHeight: " + rowHeight) | ||||
| //        console.log("screen.height: " + screen.height) | ||||
| 	} else { | ||||
|         var heightToUse = window.innerHeight | ||||
|         if (document.documentElement.clientHeight > heightToUse) { | ||||
|             console.log("document.documentElement.clientHeight: " + document.documentElement.clientHeight) | ||||
| //            console.log("document.documentElement.clientHeight: " + document.documentElement.clientHeight) | ||||
|             heightToUse = document.documentElement.clientHeight | ||||
|         } | ||||
| 		rowHeight = heightToUse / rowCount - 2 | ||||
|         console.log("Not full screen, rowHeight: " + rowHeight) | ||||
|         console.log("window.innerHeight: " + window.innerHeight) | ||||
| //        console.log("Not full screen, rowHeight: " + rowHeight) | ||||
| //        console.log("window.innerHeight: " + window.innerHeight) | ||||
| 	} | ||||
| 	//Now that all the player boxes are made, they must be configured | ||||
| 	for (var i = 1; i <= playerCount; i++) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kyle
					Kyle