animated sprite implementation of CastEngine