Game Development Reference
In-Depth Information
Figure 5-4
.
A layer of stars added to the scene
Go ahead and start playing the game. When you go higher and higher in the scene, you
will notice that the stars are moving just a bit faster than the background. This effect is
called
parallelaxation
.
The next thing I want to do is add the perception that the
playerNode
is starting on a
planet's surface. Go back to Xcode and, once again, open the
Images.xcassets
folder and find the
PlanetStart
image. This is the image that will act as the planet's
surface.
Adding this new image to your scene is not complicated, and you have seen it before. The
only difference from adding the stars to the scene is that you are going to move the planet