I was wondering if there were any really good examples of 2D game engines that integrated 2D graphics, AI and collision detection in to the framework. I understand how to implement each of those things individually, and they are well documented, but when it comes to combining these things in to a usable framework I’m stumped.
Also it would be nice if the engine had some basic examples of a completed game. If there aren’t any great examples of engines or it would be too difficult to grasp the design decisions, are there any good games that incorporate all of these elements that I should look at?