Added basic animated sprite implementation

This is something from LD29 that I figured would be useful in the future
and forgot to add before.