Skip to content

Commit 072535c

Browse files
committed
general improvements
1 parent 1e031a2 commit 072535c

34 files changed

+95
-117
lines changed
0 Bytes
Binary file not shown.

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import PlaygroundSupport
22
import SpriteKit
33
import Cocoa
44
/*:
5-
# *Game Name*
5+
# *Musical Invaders*
66
You are on a mission to save the galaxy, but there's only one problem...
77
**your ship got off course and you're headed full speed for disaster!**
88

@@ -17,10 +17,13 @@ import Cocoa
1717
*/
1818
let scene = GameScene(fileNamed: "GameScene")
1919

20+
let frame = CGRect(x: 0, y: 0, width: 700, height: 1000)
2021
let view = SKView(frame: frame)
21-
view.presentScene(scene)
2222

2323
//add tracker to detect mouse location
24+
public let tracker = NSTrackingArea(rect: frame, options: options, owner: view, userInfo: nil)
2425
view.addTrackingArea(tracker)
2526

27+
view.presentScene(scene)
28+
2629
PlaygroundPage.current.liveView = view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)