Mind this is not open sourced right now, because
A) The code is uncommented and sloppy (something I can rectify)
B) Phizzy is still banned.
Super Mario Galaxy, based on the idea of having small planetoids with their own gravity and such, allowing for the character to walk on all sorts of different edges, at any angle.
This, of course, is a 2d version of that. And since the game has not actually been released in the US so far, I based this just off of what I've seen of screen shots and such. It should be pretty easy to figure out. With this said, have fun...
Controls:
Arrow keys: Move
Shift: Jump