Part 4: Sprites Animation

Sprites Setup

Setting variables for movement & update function to do the math





Set in the draw function the sprite to charX & charY



creation and call of the gameloop function



You should now be able to see the animation by opening in browser