Welcome to the second Proof of Concept! If you're not familiar with my Proof of Concept Series, here's how it goes: I think of some random game feature, and then put it here as proof of concept. The idea is that for every sprite you subtract your camera position from your sprite's position, then multiply by some value (sort of z). How to Use: Use this in your scrolling platformer, intro, art, or anything else you can think of. The more depth you add to your game, the more immersive it is.
The squash variable is really focal length.