Animating Sprite Sheets With JavaScript

added by JavaScript Kicks
7/2/2018 7:58:44 AM

566 Views

Let's look at animating a sprite sheet, on an HTML5 canvas, using JavaScript. First, let's create the canvas element. Add a border (so we can see our usable area). And load the sprite sheet ( https://opengameart.org/content/green-cap-character-16x18). While we're at it, let's get access to the canvas and its 2D context.


0 comments