Skip to content

Instantly share code, notes, and snippets.

@Bashta
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bashta/af11df40121ccad39407 to your computer and use it in GitHub Desktop.
Save Bashta/af11df40121ccad39407 to your computer and use it in GitHub Desktop.
MenuScene
import SpriteKit
class MenuScene: SKScene {
var label = SKLabelNode(fontNamed: "Chalkduster")
override func didMoveToView(view: SKView) {
label.text = "The Game is finished! This is the menu"
label.fontSize = 20
label.position = CGPoint(x:CGRectGetMidX(self.frame), y:CGRectGetMidY(self.frame));
self.addChild(label)
}
override init(size: CGSize) {
super.init(size: size)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment