Last active
August 29, 2015 14:21
-
-
Save suisho/03012c348c196579df6b to your computer and use it in GitHub Desktop.
swiftでYMCPhysicsDebuggerが使えなかった話(showsPhysicsを使おう) ref: http://qiita.com/suisho/items/81ec4aa3e197086bb3ab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class GameViewController: UIViewController { | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| if let scene = GameScene.unarchiveFromFile("GameScene") as? GameScene { | |
| // Configure the view. | |
| let skView = self.view as! SKView | |
| skView.showsFPS = true | |
| skView.showsNodeCount = true | |
| skView.ignoresSiblingOrder = true | |
| skView.showsPhysics = true // これ | |
| scene.scaleMode = .AspectFit | |
| skView.presentScene(scene) | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment