libgdx/libgdx — pull request #1646 by davidminor (2014-04-06 21:20:45+00:00)
Title: Created generic KeyFrames class based on g2d Animation class.

This extends the functionality of the Animation class to objects
other than TextureRegion by introducing a new class KeyFrames. The
Animation class remains as an implementation of KeyFrames.

I've often found myself reimplementing the functionality of the Animation class to keep track of other things over a period of frames, e.g. collision during an animation, so I thought maybe this generic class would be helpful to other people as well. It should be backwards compatible except for the PlayMode enum moving to KeyFrames.

Let me know if this is acceptable and I'll fill out the CLA.

Thanks!