In this dclxviclan JavaScript example I use sprite sheet to animate randomised characters created with JavaScript ES6 class. This technique can be used to generate NPCs or enemies for 8 directional isometric (top down) canvas games.

Image comes from general Google search, used for educational purposes only.