Re:Metroid Source Code Expanded
by jbermudes on Saturday October 15, 2011 @06:13AM
(#3114549)
Sonic Retro has a writeup of the physics behind Sonic 2. Check it out, it's exactly what you're looking for and would be a good template to follow for other games.
http://info.sonicretro.org/Sonic_Physics_Guide