Skip to content

Commit 2d87356

Browse files
committed
added a basic intro sequence
1 parent 30eccc9 commit 2d87356

File tree

9 files changed

+236
-149
lines changed

9 files changed

+236
-149
lines changed
0 Bytes
Binary file not shown.

WWDC 2018 Debug Xcode Project/WWDC SUBMISSION 2018.playground/Contents.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Cocoa
44

55
let scene = GameScene(fileNamed: "GameScene")
66

7-
let frame = CGRect(x: 0, y: 0, width: 1920, height: 1080)
7+
let frame = CGRect(x: 0, y: 0, width: 700, height: 1000)
88
let view = SKView(frame: frame)
99

1010
//add tracker to detect mouse location
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
22
import SpriteKit
33

4-
//delays animations
4+
//delays animations, this makes the code musch easier to read
55
public func delay(_ delay:Double, closure:@escaping ()->()) {
66
let when = DispatchTime.now() + delay
77
DispatchQueue.main.asyncAfter(deadline: when, execute: closure)
@@ -15,10 +15,6 @@ struct PhysicsCategory {
1515
static let Note : UInt32 = 0b100 // 3
1616
}
1717

18-
struct NoteLength {
19-
static let quarter : Double = 0.25
20-
static let half : Double = 0.25
21-
//add more later?
22-
}
23-
24-
18+
//defines a word for each not length so it is easier to read
19+
public var quarter = 0.25
20+
public var half = 0.5

0 commit comments

Comments
 (0)