This is a simple yet extremely powerful physics engine for 2D movement that allows for movement over hills, to be blocked by walls and roofs and should work with any map you build Feel free to check out the code I've commented everything so you know what to tweak to make it your own!
Made entirely by me one rainy afternoon I strongly encourage anyone to remix this engine to build whatever game they like out of it, I also have a way to turn it into a scrolling engine which I might release in the near future :P