@dev,
I am still interested in implementing optional Parallax support into the camera(s) that SSK2 implements, but I keep stumbling on best implementation.
There are two well known ways (among many others) to implement parallax.
- Infinite Layers
- Each layer of parallax theoretically extends infinitely in the plane(s) of scrolling.
- These layers are populated with a large number of objects.
- To give the impression of depth, the individual layers are scrolled at different rates based on fixed ratios and limits.
- This variant is suitable for non-repeating worlds where the layers vary in an irregular pattern and do not generally repeat textures and content.
- A sub-variant of this parallax implementation style can be implemented where content is added and removed JIT to maintain reasonable memory and CPU usage.
- Wrapping Layers
- This variant is similar to infinite, but the bounds of scrolling space are limited and content in the layers is wrapped dynamically when off-screen to give the impression of an infinity world when in fact it is simply the same textures repeating over and over.
I will probably implement basic hooks, controls, and events for both, but as you can see it is a big topic to simplify and express via an API, which is why this has been taking some time top get on my schedule.