Revisiting project elements
Now we are going to discuss about some auto-generated files in your Sprite Kit project. They can be found on the left panel in your Xcode.
AppDelegate.swift
This file is an entry point file to our game. Its existence is crucial when the game goes from an active state to inactive state (or background state), in simple terms, when there are some sorts of temporary interruptions (such as incoming phone calls or SMS messages), or when the user force quits the application. The essence of this file in a project comes when you have to perform any specific task between the transition of active and inactive states, such as saving game data when the game is moving into a background state due to a phone call.
GameScene.sks
This file is a static archive of your scene's content. This file presents a view in your editor, it is used to save static content of a game such as spawning the position of a player, level ending position, and so on. The main essence and importance...