Animation Framework for 2D engine