Please see OS2D engine for 2d mobile games