Code Super Mario in JS (Ep 2) - Sprites & Layers

In this second episode of writing a Super Mario game in JavaScript, I show how to draw sprites and different layers. We will look at * Using setTimeout to create artificial delay. * Parallelizing asynchronous calls using (). * Higher order functions. * Refactoring a classes. Since we are writing modern JS this code might not run on all browsers yet. I was running Chrome 61 when I wrote this and if you wish to follow I recommend you do too. Source code with step-by-step commits: Music: Demoscene Time Machine
Back to Top