BACK
Feed

Depth of Field

Why doesn’t anyone play with depth of field in flash games? Parallax movement is all over the place, so why not changing depth of field? Really, is it so hard? No, it’s ridiculously easy. Look, I just did it.

Ok, so maybe it’s hugely processor intensive and really limited in scope, but that can get fixed! This is one of my lab projects that I just know is going to pop up again and be super useful. Or maybe someone else will take it and run and make something amazing from it. The idea is simple. Let’s get some depth going here!

This project uses two custom classes, one for Depth of Field, and another for Parallax scrolling. The Parallax is bound to the horizontal mouse movement, and the Depth of Field to the vertical. Check it out, steal it, run with it. Let me know if you make anything cool.

Source and Example


This page is cryptographically signed with my public key. (learn more)