Uploaded February 2023 | Updated September 2026, 1 week ago
EXTENDED class with BONUS lessons and more free sprite sheets, full source code from 6 different stages as we progress with the project, HQ image source files and more:
๐ Udemy: udemy.com/course/build-animated-physics-game-with-javascript/?referralCode=B4482AF631243104650B
What makes a great game? Is it about beautiful, polished visuals or about gameplay that feels good and responsive? Is it about unique ideas, or maybe it's the little details, special secrets and Easter eggs? What are the ingredients in a perfect game development recipe?
Let's explore fantasy mushroom forest theme and learn all the techniques you need to make your own 2D games with vanilla JavaScript, HTML5, CSS3 and HTML Canvas. Have fun!
๐ Skillshare (free 1 month trial that includes all my extended classes including this one):
skillshare.com/en/r/profile/Frank-Dvorak/507488567?gr_tch_ref=on&gr_trp=on
1
The pace and techniques in this course are beginner friendly. Existing knowledge of HTML, CSS & JavaScript is needed to follow the course. If you understand JavaScript basics and know what functions, for loops and arrays are, you will be able to get the maximum value out of this class.
๐จ 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
All project images: frankslaboratory.co.uk/downloads/109/all_project_images.zip
Background: frankslaboratory.co.uk/downloads/109/background.png
Overlay: frankslaboratory.co.uk/downloads/109/overlay.png
Player: frankslaboratory.co.uk/downloads/109/bull.png
Obstacles: frankslaboratory.co.uk/downloads/109/obstacles.png
Egg: frankslaboratory.co.uk/downloads/109/egg.png
Toad single: frankslaboratory.co.uk/downloads/109/toad.png
Larva: frankslaboratory.co.uk/downloads/109/larva.png
Toads: frankslaboratory.co.uk/downloads/109/toads.png
Bonus images, environmental art, HQ separate pieces in PSD format etc: frankslaboratory.co.uk/downloads/109/bonus_image_source_files.zip
Today we will learn:
- How to implement a very simple AI to make the creatures feel alive
- How to control the FPS of our game and how to measure time to trigger periodic events
- How to restart the game by pressing a button
- How to apply collision detection, resolve collisions and use that to simulate physics
- How to use the built-in drawImage method to draw randomised game environments and animated characters from a sprite sheet
- How to capture mouse position and animate an 8 directional sprite sheet based on the relative position between the mouse and the player character
- How to use HTML5, CSS3 and plain vanilla JavaScript to build a game from scratch. We will write and understand every line of code, we will not rely on any external frameworks or libraries
... and much more
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:45 Basic setup
00:04:35 Object oriented programming in JavaScript
00:08:58 Drawing the player
00:16:08 Mouse controls
00:22:08 Making the player move
00:29:48 Creating obstacles
00:36:21 Non-overlapping obstacles
00:42:56 Randomised images from a sprite sheet
00:48:11 Positioning rules
00:54:10 Reusable collision detection method
00:58:15 Let's add physics
01:06:22 8-directional sprite animation
01:10:36 Animation angles
01:17:42 Debug mode
01:21:15 Player movement boundaries
01:24:04 FPS
01:33:43 Egg class
01:38:36 Periodically adding new eggs
01:45:35 Egg physics
01:51:10 Draw order
01:59:28 Enemy class
02:10:47 Larva class
02:14:14 Egg hatching
02:24:12 Larva sprites and collisions
02:28:50 Gaining score points
02:31:31 Particle effects
02:40:26 Particle motion
02:47:30 Randomized enemy skins
02:51:53 Win and lose condition
03:02:25 Restart 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
EXTENDED class with BONUS lessons and more free sprite sheets, full source code from 6 different stages as we progress with the project, HQ image source files and more:
๐ Udemy: udemy.com/course/build-animated-physics-game-with-javascript/?referralCode=B4482AF631243104650B
What makes a great game? Is it about beautiful, polished visuals or about gameplay that feels good and responsive? Is it about unique ideas, or maybe it's the little details, special secrets and Easter eggs? What are the ingredients in a perfect game development recipe?
Let's explore fantasy mushroom forest theme and learn all the techniques you need to make your own 2D games with vanilla JavaScript, HTML5, CSS3 and HTML Canvas. Have fun!
๐ Skillshare (free 1 month trial that includes all my extended classes including this one):
skillshare.com/en/r/profile/Frank-Dvorak/507488567?gr_tch_ref=on&gr_trp=on
1
The pace and techniques in this course are beginner friendly. Existing knowledge of HTML, CSS & JavaScript is needed to follow the course. If you understand JavaScript basics and know what functions, for loops and arrays are, you will be able to get the maximum value out of this class.
๐จ 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
All project images: frankslaboratory.co.uk/downloads/109/all_project_images.zip
Background: frankslaboratory.co.uk/downloads/109/background.png
Overlay: frankslaboratory.co.uk/downloads/109/overlay.png
Player: frankslaboratory.co.uk/downloads/109/bull.png
Obstacles: frankslaboratory.co.uk/downloads/109/obstacles.png
Egg: frankslaboratory.co.uk/downloads/109/egg.png
Toad single: frankslaboratory.co.uk/downloads/109/toad.png
Larva: frankslaboratory.co.uk/downloads/109/larva.png
Toads: frankslaboratory.co.uk/downloads/109/toads.png
Bonus images, environmental art, HQ separate pieces in PSD format etc: frankslaboratory.co.uk/downloads/109/bonus_image_source_files.zip
Today we will learn:
- How to implement a very simple AI to make the creatures feel alive
- How to control the FPS of our game and how to measure time to trigger periodic events
- How to restart the game by pressing a button
- How to apply collision detection, resolve collisions and use that to simulate physics
- How to use the built-in drawImage method to draw randomised game environments and animated characters from a sprite sheet
- How to capture mouse position and animate an 8 directional sprite sheet based on the relative position between the mouse and the player character
- How to use HTML5, CSS3 and plain vanilla JavaScript to build a game from scratch. We will write and understand every line of code, we will not rely on any external frameworks or libraries
... and much more
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:45 Basic setup
00:04:35 Object oriented programming in JavaScript
00:08:58 Drawing the player
00:16:08 Mouse controls
00:22:08 Making the player move
00:29:48 Creating obstacles
00:36:21 Non-overlapping obstacles
00:42:56 Randomised images from a sprite sheet
00:48:11 Positioning rules
00:54:10 Reusable collision detection method
00:58:15 Let's add physics
01:06:22 8-directional sprite animation
01:10:36 Animation angles
01:17:42 Debug mode
01:21:15 Player movement boundaries
01:24:04 FPS
01:33:43 Egg class
01:38:36 Periodically adding new eggs
01:45:35 Egg physics
01:51:10 Draw order
01:59:28 Enemy class
02:10:47 Larva class
02:14:14 Egg hatching
02:24:12 Larva sprites and collisions
02:28:50 Gaining score points
02:31:31 Particle effects
02:40:26 Particle motion
02:47:30 Randomized enemy skins
02:51:53 Win and lose condition
03:02:25 Restart 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




![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)





