IntroScene
class IntroScene : SKScene
The SpriteKit scene associated with the intro scene.
-
The sprite associated with the level.
Declaration
Swift
var character: SKSpriteNode?
-
The label that corresponds to the move up key.
Declaration
Swift
var moveUpKey: SKLabelNode?
-
The label that corresponds to the move left key.
Declaration
Swift
var moveLeftKey: SKLabelNode?
-
The label that corresponds to the move right key.
Declaration
Swift
var moveRightKey: SKLabelNode?
-
The label that corresponds to the move down key.
Declaration
Swift
var moveDownKey: SKLabelNode?
-
The label that corresponds to the change costume (previous) key.
Declaration
Swift
var prevCostumeKey: SKLabelNode?
-
The label that corresponds to the change costume (next) key.
Declaration
Swift
var nextCostumeKey: SKLabelNode?
-
The label that corresponds to the use key.
Declaration
Swift
var useKey: SKLabelNode?
-
The label that corresponds to the start button.
Declaration
Swift
var startButton: SKLabelNode?
-
Set up the scene and load in the corresponding keyboard shortcuts.
Declaration
Swift
override func sceneDidLoad()
-
Listen for mouse events and start the game when the user presses the start button.
Declaration
Swift
override func mouseDown(with event: NSEvent)