Adjusting the project
We are going to make some adjustments in the already-created project called Platformer
. Please follow the steps listed, in order to customize the project according to our needs:
Delete the
GameScene.swift
andGameScene.sks
files present in your project. We will be recreating these files as per our need. Don't worry about the error, we are going to fix it in the next step.GameScene.swift
is the default scene given by Xcode; we are deleting the default ones as we are going to create the menu Scene before the game scene. Take a look at the next screenshot:Open
GameViewController.swift
and delete the code, as shown in the following screenshot:Delete the Spaceship image from
Images.xcassets
. Spaceship images are not required in this project.
Now you will not see an error in your Xcode, and if you run Platformer
, you will see nothing. Well, that is not what we desire. Now, before getting your feet wet in code, we need to know what we have done (almost nothing but deleting...