Learn 2D Game Development with JavaScript @Frankslaboratory
Learn 2D Game Development with JavaScript  @Frankslaboratory
Uploaded July 2022 | Updated November 2026, 19 hours ago
Coders! Let's explore an alien planet and learn all the techniques you need to make your own 2D games with vanilla JavaScript, HTML5, CSS3 and HTML Canvas. From sprite animation to parallax backgrounds, today we will build a game completely from scratch, with no frameworks and no libraries, using just HTML, CSS and plain vanilla JavaScript. Have fun!

🐟EXTENDED class with BONUS lessons and more free sprite sheets: 4 new enemies, sound design, animated shield, animated projectiles and more udemy.com/course/learn-game-development-with-javascript/?referralCode=69874A38D543D7F510F2

🎨 Download Project Art assets 🎨
** All art assets for this class were made by me or by artists I hired, there is NO copyright, you can download and use these freely for any project you want! Click the LIKE on the video if you want more free game art soon! :D
Player: frankslaboratory.co.uk/downloads/103/player.png
Projectile: frankslaboratory.co.uk/downloads/103/projectile.png
Particle gears: frankslaboratory.co.uk/downloads/103/gears.png
⚙️ Backgrounds:
Layer 1: frankslaboratory.co.uk/downloads/103/layer1.png
Layer 2: frankslaboratory.co.uk/downloads/103/layer2.png
Layer 3: frankslaboratory.co.uk/downloads/103/layer3.png
Layer 4: frankslaboratory.co.uk/downloads/103/layer4.png
🐟 Enemies:
Angler 1: frankslaboratory.co.uk/downloads/103/angler1.png
Angler 2: frankslaboratory.co.uk/downloads/103/angler2.png
Lucky Fish: frankslaboratory.co.uk/downloads/103/lucky.png
Hive Whale: frankslaboratory.co.uk/downloads/103/hivewhale.png
Drone: frankslaboratory.co.uk/downloads/103/drone.png
☁️ Collision Animations:
Smoke: frankslaboratory.co.uk/downloads/103/smokeExplosion.png
Fire: frankslaboratory.co.uk/downloads/103/fireExplosion.png

For more vanilla JavaScript GAME DEVELOPMENT check out this playlist:
youtube.com/playlist?list=PLYElE_rzEw_uryBrrzu2E626MY4zoXvx2

⭐️Tutorial Contents ⭐️
00:00:00 Intro
00:00:47 HTML & CSS setup
00:02:20 Basic JavaScript setup
00:04:39 Object Oriented programming with JavaScript
00:07:05 Creating Player and Game objects
00:12:58 Animation loop
00:16:16 Keyboard inputs
00:25:55 Creating projectiles
00:33:02 Periodic events
00:38:10 Drawing game UI
00:41:00 Base enemy class
00:48:59 Collision detection between rectangles
00:54:16 Drawing game score
00:57:29 Win and lose condition
00:59:32 Counting game time
01:02:47 Animated parallax backgrounds
01:13:00 Sprite animation with JavaScript
01:16:42 Creating a debug mode
01:18:18 Animating enemy sprite sheets
01:24:55 Night Angler enemy class
01:27:19 Lucky Fish enemy class
01:28:42 Collecting power ups
01:36:31 Drawing projectiles as images
01:37:41 Custom fonts and game text
01:40:23 Cleaning up
01:42:31 Particle effects and physics
01:54:43 Particle rotation
01:58:27 Tweaks and fixes
02:01:26 Hive Whale enemy class
02:04:26 Drone enemy class
02:09:10 Dust effect animation
02:24:16 Fire effect animation
02:25:43 Tuning game difficulty
02:29:06 What to do next?

Let's be friends
👍 You can message me on TWITTER twitter.com/code_laboratory
👍 Check out some of my source code on CODEPEN codepen.io/franksLaboratory

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!
#frankslaboratory
Learn 2D Game Development with JavaScriptHow to Optimize Your 2D GamesVanilla JavaScript Gamedev - Sprite Animation | How to make games from scratch with JS & HTML CanvasLearn JavaScript By Building Games  | How To Make A Game With Vanilla JS [Frogger]ASCII Art with Vanilla JavaScriptCSS Parallax Tutorial for Beginners [ Creative Web Design Ideas ] Animated CSS3 Card Hover EffectsCSS Animations 3D Transform Cube Menu Tutorial | Animated Buttons Hover EffectParticle Experiments: Sunrays EffectJavaScript Game Tutorial - Final PolishParticle Experiments: Inflatable Bubbles10 Creative Coding Techniques in 60 secondsLearn Creative Coding: Flow Fields 🎨
Franks laboratory |

Learn 2D Game Development with JavaScript

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER