SpriteKit functionality can be implemented in a subclass of SKScene. For example, a game may implement the main game functionality within an SKScene subclass called GameScene.
In Swift:
import SpriteKit
class GameScene: SKScene {
override func didMoveToView(view: SKView) {
/* Co...