>>1
I'm sure there has been. I don't know if Duke Nukem Manhattan Project counts, since it uses 3d graphics instead of 2d (although it features 2d gameplay), but the idea seems fairly obvious. I've often thought it would be a good idea to construct a platform engine with levels consisting of arbitrarily shaped and positioned graphics and arbitrary collision geometry, not bound together.