Uploaded April 2022 | Updated September 2026, 1 week ago
Make your own 2D adventures with HTML, CSS & plain vanilla JavaScript, no frameworks and no libraries! Anything can be built with code and every time you code along with a project like this, you get one step closer to mastering front-end web development and when you get there the only limit is your imagination. Let me show you how I approach building this fast paced side scroller game and let's help our super dog character to find it's way out of the dark forest. I will build everything from scratch and explain every line of code as we go along. Have fun ! :D
Part 1: youtu.be/c-1dBd1_G8A Animating player (this video)
Part 2: youtu.be/ug-gdfGb7I8 State management and parallax backgrounds
Part 3: youtu.be/lqNztI7BMf8 Enemy types
Part 4 : youtu.be/6ppfyWdoH3c Collisions & Particles
Part 5 : youtu.be/KICADKr_zeM Win & Lose Conditions, Timer, Clean up
Part 6: youtu.be/tWS_eURr2_w Bonus features
🎮 FULL SERIES:🎮 youtube.com/playlist?list=PLYElE_rzEw_uryBrrzu2E626MY4zoXvx2
❤ Related Links ❤
Art by bevouliin.com check out their website for more game art assets!
Download project sprite sheets:
🐕 Player: frankslaboratory.co.uk/downloads/97/player.png
Backgrounds:
Layer 1: frankslaboratory.co.uk/downloads/97/layer-1.png
Layer 2: frankslaboratory.co.uk/downloads/97/layer-2.png
Layer 3: frankslaboratory.co.uk/downloads/97/layer-3.png
Layer 4: frankslaboratory.co.uk/downloads/97/layer-4.png
Layer 5: frankslaboratory.co.uk/downloads/97/layer-5.png
⭐️Tutorial Contents ⭐️
00:00 Course overview & final project previews
00:53 How to set up a local server
02:10 HTML & CSS setup
03:54 How to set up HTML5 canvas with JavaScript
05:28 Game and Player class
08:49 How to export and import native JavaScript modules
11:09 Animation loop
12:47 Sprite sheets and drawImage canvas method
14:39 Animating movement on HTML canvas
15:38 Capture multiple key presses
20:28 Make player react to inputs
23:05 Simple way to handle jumping in a 2D game
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
Make your own 2D adventures with HTML, CSS & plain vanilla JavaScript, no frameworks and no libraries! Anything can be built with code and every time you code along with a project like this, you get one step closer to mastering front-end web development and when you get there the only limit is your imagination. Let me show you how I approach building this fast paced side scroller game and let's help our super dog character to find it's way out of the dark forest. I will build everything from scratch and explain every line of code as we go along. Have fun ! :D
Part 1: youtu.be/c-1dBd1_G8A Animating player (this video)
Part 2: youtu.be/ug-gdfGb7I8 State management and parallax backgrounds
Part 3: youtu.be/lqNztI7BMf8 Enemy types
Part 4 : youtu.be/6ppfyWdoH3c Collisions & Particles
Part 5 : youtu.be/KICADKr_zeM Win & Lose Conditions, Timer, Clean up
Part 6: youtu.be/tWS_eURr2_w Bonus features
🎮 FULL SERIES:🎮 youtube.com/playlist?list=PLYElE_rzEw_uryBrrzu2E626MY4zoXvx2
❤ Related Links ❤
Art by bevouliin.com check out their website for more game art assets!
Download project sprite sheets:
🐕 Player: frankslaboratory.co.uk/downloads/97/player.png
Backgrounds:
Layer 1: frankslaboratory.co.uk/downloads/97/layer-1.png
Layer 2: frankslaboratory.co.uk/downloads/97/layer-2.png
Layer 3: frankslaboratory.co.uk/downloads/97/layer-3.png
Layer 4: frankslaboratory.co.uk/downloads/97/layer-4.png
Layer 5: frankslaboratory.co.uk/downloads/97/layer-5.png
⭐️Tutorial Contents ⭐️
00:00 Course overview & final project previews
00:53 How to set up a local server
02:10 HTML & CSS setup
03:54 How to set up HTML5 canvas with JavaScript
05:28 Game and Player class
08:49 How to export and import native JavaScript modules
11:09 Animation loop
12:47 Sprite sheets and drawImage canvas method
14:39 Animating movement on HTML canvas
15:38 Capture multiple key presses
20:28 Make player react to inputs
23:05 Simple way to handle jumping in a 2D game
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



![Particles JS Effect with Pure Vanilla JavaScript | Animated Background Tutorial with Examples
#javascript #html5canvas #frankslaboratory
Particles JS background animation effect tutorial with no libraries, coded completely from scratch with pure vanilla JavaScript and HTML5 canvas (with many examples).
Welcome to the third part of my JavaScript animation tutorial series. In this guide we will create animated interactive background particle effects you can use for your website with HTML canvas element and vanilla JavaScript. No frameworks or libraries, just pure object oriented JavaScript principles to demonstrate how amazing and flexible JavaScript is for web design and front end web development | Particles JS Effect with Pure Vanilla JavaScript | Particle Background with examples | HTML Canvas
*** Particles JS Effect with Pure Vanilla JavaScript | Animated Background Tutorial with Examples ***
You can use this effect to design your website or to practice advanced JavaScript techniques even a beginner can learn. Pure vanilla JavaScript HTML web design tutorial. No libraries included.
More JavaScript tutorials, interactive web animations, animated effects, front end web development guides, interactive examples and CSS tricks coming soon!
Like & Subscribe please ! :]
Part 1 - https://www.youtube.com/watch?v=hotMX-pqjkQ
Part 2 - https://www.youtube.com/watch?v=hF-QBhDG-wE
Pure CSS ripple effect tutorial:
https://www.youtube.com/watch?v=64NUjdMjEyw
If you liked this video Im sure you will enjoy other videos on my channel. You can find HTML Canvas Animation Tutorials, JavaScript tutorials, animated effects and step by step animation guides, each video shows many examples of the final effect. I will help you learn modern web development techniques by building real projects you can show off on your personal website or GitHub. Code along with me and gain skills to get your first job in the industry. If I could do it you can do it too. If you decide to code along and modify the effects, share your Codepen/JS Fiddle in the comments, I want to see what you came up with.
I have pure vanilla JavaScript animation series, in each tutorial we create all different kinds of interactive animated effects from scratch. No plugins, no libraries, no frameworks. Every line of code is explained to give you hands on experience and teach you as much JavaScript as possible. If you want more creative JavaScript tutorials, HTML canvas animations, interactive animated effects, code alongs, video guides for beginners as well as advanced pure vanilla JavaScript, check out the previous episodes here:
Part 1 - HTML Canvas & Vanilla JavaScript Animation Series 1 - Floating Particles Effect
https://www.youtube.com/watch?v=hotMX-pqjkQ
Part 2 - HTML Canvas & Vanilla JavaScript Animation Series 2 - Animated Clouds Effect
https://www.youtube.com/watch?v=hF-QBhDG-wE
Part 3 - Particles JS Effect with Pure Vanilla JavaScript | Animated Background Tutorial with Examples
https://youtu.be/d620nV6bp0A
Part 4 - Spinning Stars in Vanilla JS & HTML Canvas Animated Backgrounds Coding Tutorial
https://youtu.be/suBgH07fjmo
Part 5 - Eye Balls Animation - JavaScript HTML5 Canvas Effect Tutorial Trigonometry & Circles With No Overlap
https://youtu.be/52rKp7P3gIs
For more creative vanilla JavaScript tutorials, CSS tricks, HTML canvas animations, front end web development and web design guides, subscribe to the channel and click the bell icon to get notified when I release a new video.
My name is Frank, Im a self-taught Front End Web Developer. I learned everything I know in my free time and I used the knowledge to get a great job in web development industry. The part I enjoy the most is building creative animations and interactive effects for the web using HTML, CSS and JavaScript. Thank you for watching my video.
If you want to improve your Front End Web Developmnent skills, check out my CSS tutorial series where we explore animations and effects that can be done with modern CSS3 techniques:
https://www.youtube.com/watch?v=loKyT99W2s8&list=PLYElE_rzEw_t2O2DvfopIoq-diTgefVzV
Particles JS Effect with Pure Vanilla JavaScript | Animated Background Tutorial with Examples
Music:
Business / Corporate by Mixaund | https://mixaund.bandcamp.com
Music promoted by https://www.free-stock-music.com Particles JS Effect with Pure Vanilla JavaScript | Animated Background Tutorial with Examples](https://i.ytimg.com/vi/d620nV6bp0A/mqdefault.jpg)






