Playing sound effects in SpriteKit:
//Load the sound use jumpSound = SKAction.PlaySoundFileNamed("Jump.wav", true) //Play the sound scene.RunAction jumpSound
Note that the File extension is important here – unlike the graphics formats loaded into SpriteKit.
So far our level plays for 10 seconds and then goes to game over. Next time I’ll add success and failure criteria, and we can start to contemplate how to handle multiple levels.