Game Development Reference
In-Depth Information
What just happened?
We just added the parallax effect in our game by simply using the player speed at different
ratios at different depths. The only slightly complicated part of the logic is how to ensure
the sprites scroll continuously. But the math of it is very simple. You just need to make sure
the sprites align correctly.
Search WWH ::




Custom Search