term.gfx.sprite.anim

term.gfx.sprite

anim(spec) -> anim

Create an animated sprite from a frame sequence

spec:

The anim is itself a blit source delegating to the current frame: call :update(dt) each tick, then canvas:blit(anim, x, y) (or anim:current()).