Uploaded October 2022 | Updated September 2026, 1 week ago
4-directional keyboard controlled characters, animated 2D game worlds with randomised environmental elements, controlling FPS and draw order in a 2D game and wrapping all of that in object oriented code structure. In this series we discover mythical creatures of magical forest and I'm giving away a ton of high resolution game art assets, as usual. What do you think about this vector art style?
HTML canvas was developed as a replacement of Flash, it's a perfect environment to make games and animation projects. Today we will learn how to use HTML5, CSS3 and plain vanilla JavaScript to make the most of it's powerful capabilities. No frameworks and no libraries as usual. Have fun!
🐟Check out my EXTENDED game development 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 LIKE on the video if you want more free game art soon!
BASIC art asset pack (to follow along with this episode): frankslaboratory.co.uk/downloads/107/owlbear.zip
BONUS high resolution exports in PNG format (12MB): frankslaboratory.co.uk/downloads/107/bonus.zip
SOURCE files (.ai/.psd format) (21MB): frankslaboratory.co.uk/downloads/107/source.zip.
PNG exports are uncompressed, you can use a site like Tiny png to reduce the file size if needed.
If anything is missing or you want source files in a different format let me know in the comments.
Feel free to modify the shapes, colour shift to get different variations etc. Have fun!
Individual base art assets:
Background: frankslaboratory.co.uk/downloads/107/background.png
Background 2: frankslaboratory.co.uk/downloads/107/background2.png
Overlay: frankslaboratory.co.uk/downloads/107/overlay.png
Leaves left: frankslaboratory.co.uk/downloads/107/leaves_left.png
Leaves right: frankslaboratory.co.uk/downloads/107/leaves_right.png
Owlbear sprite sheet: frankslaboratory.co.uk/downloads/107/owlbear.png
Bush: frankslaboratory.co.uk/downloads/107/bush.png
Grass: frankslaboratory.co.uk/downloads/107/grass.png
Plant: frankslaboratory.co.uk/downloads/107/plant.png
☕ For more vanilla JavaScript GAME DEVELOPMENT check out this playlist:
youtube.com/playlist?list=PLYElE_rzEw_uryBrrzu2E626MY4zoXvx2
⭐️Tutorial Contents ⭐️
00:00 Intro
00:43 Lesson 1: Project setup
02:19 Lesson 2: Enhancing game worlds with CSS
09:17 Lesson 3: JavaScript and HTML canvas setup
15:06 Lesson 4: Keyboard controls
22:34 Lesson 5: Player character
33:55 Lesson 6: Animating 4 directional sprite sheets
45:54 Lesson 7: How to control FPS
54:56 Lesson 8: Randomly positioned game objects
01:03:15 Lesson 9: Layering and draw order in 2D games
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
4-directional keyboard controlled characters, animated 2D game worlds with randomised environmental elements, controlling FPS and draw order in a 2D game and wrapping all of that in object oriented code structure. In this series we discover mythical creatures of magical forest and I'm giving away a ton of high resolution game art assets, as usual. What do you think about this vector art style?
HTML canvas was developed as a replacement of Flash, it's a perfect environment to make games and animation projects. Today we will learn how to use HTML5, CSS3 and plain vanilla JavaScript to make the most of it's powerful capabilities. No frameworks and no libraries as usual. Have fun!
🐟Check out my EXTENDED game development 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 LIKE on the video if you want more free game art soon!
BASIC art asset pack (to follow along with this episode): frankslaboratory.co.uk/downloads/107/owlbear.zip
BONUS high resolution exports in PNG format (12MB): frankslaboratory.co.uk/downloads/107/bonus.zip
SOURCE files (.ai/.psd format) (21MB): frankslaboratory.co.uk/downloads/107/source.zip.
PNG exports are uncompressed, you can use a site like Tiny png to reduce the file size if needed.
If anything is missing or you want source files in a different format let me know in the comments.
Feel free to modify the shapes, colour shift to get different variations etc. Have fun!
Individual base art assets:
Background: frankslaboratory.co.uk/downloads/107/background.png
Background 2: frankslaboratory.co.uk/downloads/107/background2.png
Overlay: frankslaboratory.co.uk/downloads/107/overlay.png
Leaves left: frankslaboratory.co.uk/downloads/107/leaves_left.png
Leaves right: frankslaboratory.co.uk/downloads/107/leaves_right.png
Owlbear sprite sheet: frankslaboratory.co.uk/downloads/107/owlbear.png
Bush: frankslaboratory.co.uk/downloads/107/bush.png
Grass: frankslaboratory.co.uk/downloads/107/grass.png
Plant: frankslaboratory.co.uk/downloads/107/plant.png
☕ For more vanilla JavaScript GAME DEVELOPMENT check out this playlist:
youtube.com/playlist?list=PLYElE_rzEw_uryBrrzu2E626MY4zoXvx2
⭐️Tutorial Contents ⭐️
00:00 Intro
00:43 Lesson 1: Project setup
02:19 Lesson 2: Enhancing game worlds with CSS
09:17 Lesson 3: JavaScript and HTML canvas setup
15:06 Lesson 4: Keyboard controls
22:34 Lesson 5: Player character
33:55 Lesson 6: Animating 4 directional sprite sheets
45:54 Lesson 7: How to control FPS
54:56 Lesson 8: Randomly positioned game objects
01:03:15 Lesson 9: Layering and draw order in 2D games
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








![HTML Canvas & Vanilla JavaScript Animation Series 1 - Floating Particles Effect
#javascript #html5canvas #frankslaboratory
In this series we will create animated interactive backgrounds 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 |
HTML Canvas & Vanilla JavaScript Animation Series 1 - Floating Particles Effect |
Like & Subscribe please ! :] HTML Canvas & Vanilla JavaScript Animation Series 1 - Floating Particles Effect
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
You can find base 64 code of the image here (it is not fully functional demo of this effect, I just dropped few lines of code there so you can copy the image code):
https://codepen.io/franksLaboratory/pen/YzzvROq
** just copy the code from line 9 to your project (png.src = data:image/png;base64,iVBO...)
Music:
Business / Corporate by Mixaund | https://mixaund.bandcamp.com
Music promoted by https://www.free-stock-music.com HTML Canvas & Vanilla JavaScript Animation Series 1 - Floating Particles Effect](https://i.ytimg.com/vi/hotMX-pqjkQ/mqdefault.jpg)

