Created
June 1, 2019 20:44
-
-
Save alexpersian/d41c17ccc70cdd393e135daed2dba2a7 to your computer and use it in GitHub Desktop.
This file contains 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
import SpriteKit | |
public class DVDScene: SKScene { | |
private let dvdNode: SKNode | |
public init(node: SKNode, size: CGSize) { | |
self.dvdNode = node | |
super.init(size: size) | |
setup() | |
} | |
public required init?(coder aDecoder: NSCoder) { fatalError() } | |
private func setup() { | |
addChild(dvdNode) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment