This commit is contained in:
Niko Jochim 2020-07-02 13:55:26 +02:00
parent 66aa21ccb4
commit 2f056725d6
5 changed files with 8 additions and 5 deletions

View File

@ -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",

View File

@ -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)
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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