September 2018
Intermediate to advanced
434 pages
8h 47m
English
Create a new file called OptionsScene.swift.
Next, add in the assets for the Options Scene menu button, mute, unmute, slider base, and slider knob assets from the chapter and add them into the Assets.xcassts file. Add them under the HUD folder as follows:

In the OptionsScene class, add the following properties for the texture atlas, mute button, slider base, slider knob, and menu button:
import SpriteKit class OptionsScene: SKScene { // Grab the HUD sprite atlas: let textureAtlas:SKTextureAtlas = SKTextureAtlas(named:"HUD") let muteButton = SKSpriteNode() let sliderBase = SKSpriteNode() let sliderKnob = SKSpriteNode() ...Read now
Unlock full access