For the sake of following along with the code in this article, you should be familiar with JavaScript, as well as have an understanding of HTML5 Canvas basics.
If you aren’t yet acquainted with Canvas, it would be beneficial to take a few minutes to look over this introductory article before moving forward.
The finished product will be a simple 2D side-scroller game.
Before we look at what makes up the actual “game” code, we need to set up our project files and create the canvas element we intend to use.
#canvas #2d #javascript #game-development #side-scroller