-
Notifications
You must be signed in to change notification settings - Fork 0
/
TitleScene.swift
36 lines (27 loc) · 893 Bytes
/
TitleScene.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// TitleScene.swift
// DropTetris
//
// Created by Kevin Yue on 11/20/14.
// Copyright (c) 2014 Kevin Yue. All rights reserved.
//
import Foundation
import SpriteKit
class TitleScene: SceneWTransitions {
override func didMoveToView(view: SKView) {
super.didMoveToView(view)
/* Setup your scene here */
let myLabel = SKLabelNode(fontNamed:Constants.font)
myLabel.text = "Count to Ten";
myLabel.fontSize = Constants.menuFontSize;
myLabel.position = CGPoint.middle;
self.addChild(myLabel)
}
override func touchesBegan(touches: NSSet, withEvent event: UIEvent) {
/* Called when a touch begins */
self.fadeToThisScene(GameScene(size: self.size))
}
override func update(currentTime: CFTimeInterval) {
/* Called before each frame is rendered */
}
}