April 2021
Beginner to intermediate
506 pages
11h 57m
English
Switch to the GameScene.swift file and remove the label and spinnyNode properties; you won’t be using these. Leave the remaining properties as they are.
Next, remove all of the code in the sceneDidLoad() method, leaving only the line that reads self.lastUpdateTime = 0; you’ll be using that property later.
Finally, clean up the touch event functions:
Locate and remove all of the code in the touchDown(atPoint:), touchMoved(toPoint:), and touchUp(atPoint:) methods.
Remove the if statement inside the touchesBegan(_:with:) method.
In Clean Up the Default Template, you removed the Actions.sks and GameScene.sks files; however, with this project, you’ll be using the GameScene.sks file, so don’t delete it; instead, ...
Read now
Unlock full access