April 2021
Beginner to intermediate
506 pages
11h 57m
English
You’ve seen how to add an image set and get an SKSpriteNode object initialized, positioned, and added to the scene. You did this with the background. It’s now time to apply that same knowledge and get the foreground added to your scene.
Before you can add a sprite node with a corresponding image file, you first need to add the images to the project as you did with the background.
In the Project Navigator, select the Assets.xcassets asset catalog.
Once again, launch a Finder window and navigate to the resources folder included with the code resources for this chapter. This time, select the three foreground images:
Drag the foreground images into ...
Read now
Unlock full access