This is far from being perfect, but it's fun and I think it could be a good exercise for someone experimenting with videogaming and/or the video library in Processing.
The whole source code can be downloaded following the link in the description of the youtube video.