Skip to content

Instantly share code, notes, and snippets.

@alexpersian
Created June 1, 2019 20:44
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 alexpersian/d41c17ccc70cdd393e135daed2dba2a7 to your computer and use it in GitHub Desktop.
Save alexpersian/d41c17ccc70cdd393e135daed2dba2a7 to your computer and use it in GitHub Desktop.
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