Create simple HTML5 canvas “game” using pure JavaScript

I have always been interested in games. Now that I’m learning JavaScript programming, I decided to make a simple “game” in HTML5 canvas element. Disclaimer: this is my first tutorial on building a game in JavaScript so there might be some bugs and mistakes.

My Favorite HTML5 Games

I loved playing games. All kinds of games. Recently, I got into JavaScript development and one of the main reasons I gave it a try was these beautiful HTML5 games. If you never played a HML5 game (“it’s too slow, bad graphics, no 3D…), I challenge you to play at least one of these. You will …