diff --git a/GoldWars/GoldWars.xcodeproj/project.pbxproj b/GoldWars/GoldWars.xcodeproj/project.pbxproj index d42f8be..8566de1 100644 --- a/GoldWars/GoldWars.xcodeproj/project.pbxproj +++ b/GoldWars/GoldWars.xcodeproj/project.pbxproj @@ -614,6 +614,7 @@ CURRENT_PROJECT_VERSION = 4; DEVELOPMENT_TEAM = DDKFQG46BQ; INFOPLIST_FILE = GoldWars/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.5; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -637,6 +638,7 @@ CURRENT_PROJECT_VERSION = 4; DEVELOPMENT_TEAM = DDKFQG46BQ; INFOPLIST_FILE = GoldWars/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.5; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/GoldWars/GoldWars/EloHelper.swift b/GoldWars/GoldWars/EloHelper.swift index 35d7287..c0aee5f 100644 --- a/GoldWars/GoldWars/EloHelper.swift +++ b/GoldWars/GoldWars/EloHelper.swift @@ -48,7 +48,8 @@ class EloHelper { let scoreForPeer = winner == GameCenterManager.sharedInstance.localPlayer ? looser_new : winner_new let scoreForHost = winner == GameCenterManager.sharedInstance.localPlayer ? winner_new : looser_new - + print("PEER",scoreForPeer ) + print("Host",scoreForHost ) MultiplayerNetwork.sharedInstance.sendEloData(scoreToReport: scoreForPeer) reportScore(score: scoreForHost.value) } diff --git a/GoldWars/GoldWars/GameCenterManager.swift b/GoldWars/GoldWars/GameCenterManager.swift index ead0e7d..05cb687 100644 --- a/GoldWars/GoldWars/GameCenterManager.swift +++ b/GoldWars/GoldWars/GameCenterManager.swift @@ -178,9 +178,9 @@ final class GameCenterManager: NSObject, GKMatchmakerViewControllerDelegate, GKG (EntityManager.gameEMInstance.scene as! GameScene).gameEnd() case 6: os_log("State 6 erhalten, Peer hat Spiel verlassen ", log: LOG, type: .info) - (EntityManager.gameEMInstance.scene as! GameScene).gameQuit() opponentQuit = true quitGame = true + (EntityManager.gameEMInstance.scene as! GameScene).gameQuit() default: break } diff --git a/GoldWars/GoldWars/GameViewController.swift b/GoldWars/GoldWars/GameViewController.swift index 3ab5d6e..6812c42 100644 --- a/GoldWars/GoldWars/GameViewController.swift +++ b/GoldWars/GoldWars/GameViewController.swift @@ -22,8 +22,8 @@ class GameViewController: UIViewController { scene.scaleMode = .aspectFill view.presentScene(scene) //TODO: create dev profile or remove on delivery - view.showsFPS = true - view.showsNodeCount = true + // view.showsFPS = true + // view.showsNodeCount = true } GameCenterManager.sharedInstance.viewController = self } diff --git a/GoldWars/GoldWars/RoundCalculatorService.swift b/GoldWars/GoldWars/RoundCalculatorService.swift index d146659..1a6e106 100644 --- a/GoldWars/GoldWars/RoundCalculatorService.swift +++ b/GoldWars/GoldWars/RoundCalculatorService.swift @@ -20,7 +20,7 @@ class RoundCalculatorService { let ATK_BOOST_MULTIPLICATOR = 1.1 let DEF_BOOST_MULTIPLICATOR = 1.1 - let MAX_ROUNDS = 3 + let MAX_ROUNDS = 20 var currentRound = 1 var isCalculating = false var numberOfAttacks = 0