JavaScript Tutorial - Game Development @Frankslaboratory
JavaScript Tutorial - Game Development  @Frankslaboratory
Uploaded December 2020 | Updated September 2026, 2 weeks ago
Let's build vanilla JavaScript 2D game completely from scratch and learn fundamental front end web development techniques in the process. In today's HTML5 canvas and JavaScript game tutorial we will add new tools to our web developer toolkit. We will learn about for loops, arrays and JavaScript classes as well as drawImage canvas method to animate multiline sprite sheets and repeating backgrounds and 2D collision detection between circles. I will also show you how to handle game over, create backgrounds with linear gradient and much more.

Relevant links:
PART1: youtu.be/jl29qI62XPg
Sprite sheets and game art: gamedeveloperstudio.com
My simple hand-drawn repeating background:
pixeldra.in/u/u2TYVTGE
imgur.com/a/8kN0rjH
https://i.ibb.co/64wxXVY/background1.png


This JavaScript tutorial is part of a series, for more game development check out this playlist youtube.com/playlist?list=PLYElE_rzEw_sowQGjRdvwh9eAEt62d_Eu

You can message me on TWITTER twitter.com/code_laboratory
Check out some of my source code on CODEPEN codepen.io/franksLaboratory

If you started with vanilla JavaScript and HTML5 canvas recently you might want to try some of the tutorials from beginner friendly projects playlist first: youtube.com/playlist?list=PLYElE_rzEw_v8TXJ_ITSSBP_ypUKfQ7K-

#frankslaboratory
Music: (YouTube audio library) Vacay In Fiji Riddim - Konrad OldMoney, World Map - Jason Farnham

The description of this video may contain affiliate links, which means that if you buy one of the products that I recommend, I'll receive a small commission without any additional cost for you. This helps to support the channel and allows me to continue making videos like this. Thank you for the support!
JavaScript Tutorial - Game DevelopmentCSS Loader Animated Effect | Creative Ideas for Web Design | HTML5 CSS3 Keyframes Animation TutorialPerformance Optimizations in 2D GamesLearn Creative Coding: Line & Path EffectsParticle Experiments: Liquid EffectsSticky Slime Effects with Vanilla JavaScriptCollision Animations & Sounds in 2D GamesBuild 8 Creative Coding Projects (vanilla JavaScript)CSS Animation Examples | 10 Animated Hover Effects You Can Build With CSS in 2019Make Your Game Feel Professional in SecondsBuild a Data-Driven Enemy System in JavaScriptJavaScript Game Tutorial - 2D Tower Defense
Franks laboratory |

JavaScript Tutorial - Game Development

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER