add GameCenterLogin-window to the GameViewController and fix size of the MenueScene

This commit is contained in:
Jakob Haag 2020-05-02 14:02:24 +02:00
parent cdb4d69621
commit e9bd05c852

View File

@ -17,7 +17,6 @@ class GameViewController: UIViewController {
if let view = self.view as! SKView? {
if let scene = SKScene(fileNamed: "MenuScene") {
scene.size = self.view.bounds.size
scene.scaleMode = .aspectFill
view.presentScene(scene)
//TODO: create dev profile or remove on delivery
@ -25,6 +24,8 @@ class GameViewController: UIViewController {
view.showsNodeCount = true
}
}
GameCenterHelper.helper.viewController = self
}
override var shouldAutorotate: Bool {