【发布时间】:2016-09-18 17:56:20
【问题描述】:
我在 GameViewController 中制作了我的游戏菜单。然后,当按下 Go 按钮时,我尝试移动到 GameScene。我使用默认代码来呈现 GameScene 文件。
if let scene = GameScene(fileNamed:"GameScene") {
// Configure the view.
let skView = self.view as! SKView
skView.showsFPS = false
skView.showsNodeCount = false
/* Sprite Kit applies additional optimizations to improve rendering performance */
skView.ignoresSiblingOrder = true
/* Set the scale mode to scale to fit the window */
scene.scaleMode = .AspectFill
skView.presentScene(scene)
}
我在情节提要中制作了菜单。我认为这就是它不起作用的原因。我应该如何解决这个问题?
尼尔
【问题讨论】:
标签: swift xcode sprite-kit skscene