April 2018
Beginner
714 pages
18h 21m
English
As an additional exercise, you may want to implement a vertical parallax sliding in addition to a horizontal one. Just make your scene bigger and have it expose the vertical scroll position in addition to the horizontal one reported by the currentPos element. Then, just repeat all the calculations for the y property of each layer and you should be done in no time. Remember that distance factors for x and y may be different.
Read now
Unlock full access