Just finished adding animation support to my small game engine. I feel I should have planned the entire thing first as its now turning into a mess of code which would be unmaintainable if I stopped and came back to it. :/ https://github.com/Plornt/Iso-Game/tree/master/web
Fun times when the preloader has to have a preloader to load the preloading image.
Edit: Ah shit... I've missed something really important out... Time to recode entire sections -.-
Just make sure you're adding lots of comments to make your code clear.