http://higherorderfun.com/blog/2012/05/20/the-guide-to-implementing-2d-platformers/
An incredible guide detailing many of the tricks/design patterns used in 2D platformers. Although there isn’t much code to look at, the higher level ideas detailed in the article are invaluable.