I've made some beginning with BG_PlayAnim() in libcod, maybe you want to use that to play custom animations: https://github.com/kungfooman/libcod...master/gsc.cpp