Uploaded November 2020 | Updated September 2026, 1 week ago
Who says learning JavaScript cannot be fun. Let's take another step towards Front End Web Development mastery and practice fundamental programming principles and techniques in this vanilla JavaScript 2D game tutorial.
PART2: youtu.be/MwTQtPGuBmo
Some people skip my generative art and HTML canvas animation videos and just focus on game tutorials, but I want to show you that all canvas techniques I teach can improve your games, if you get creative with it.
Relevant links:
Sprite sheets and game art: gamedeveloperstudio.com
This tutorial is part of a series, for more game development with pure vanilla JavaScript check out this playlist youtube.com/playlist?list=PLYElE_rzEw_sowQGjRdvwh9eAEt62d_Eu
The main reason that people don't succeed in becoming a self-taught Front End Web Developer is because they loose motivation. My tutorials focus on teaching you everything you need to know about HTML, CSS, JavaScript and HTML5 canvas element, while at the same time building fun, visual and memorable projects.
In today's vanilla JavaScript 2D game tutorial I will show you how to add sound to your games, how to make player character follow the mouse whenever we click somewhere, how to handle simple collision detection that triggers sprite animation and how to rotate our fish sprite correctly to face the direction the player is moving. We will also cover repeating backgrounds, how to handle score and couple of other things. First we will build a solid good quality game skeleton that can be used for more than just this particular fish game. Then we will start adding graphics with sprites, particle effects and make the game look polished and clean.
I made a tutorial on how to rotate elements with vanilla JavaScript on HTML canvas for beginners recently (youtu.be/TBXjWsR7XDA). Today we will use the same technique to rotate player character around, and we will build on it and take it to the next level by making it face mouse and move towards it.
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 HTML 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-
To become a professional Front End Web Developer, you need to practice and work on your skills, these are some of my favourite well structured courses that cover everything you need to know:
JavaScript Beginner Bootcamp (2020) bit.ly/3aqFFhc
20 Web Projects With Vanilla JavaScript bit.ly/3anlCQR
Learn SVG Animation - With HTML, CSS & JavaScript bit.ly/2PRGwOr
HTML, CSS, JavaScript - Build 6 Creative Projects bit.ly/33YIBjT
Object-oriented Programming in JavaScript bit.ly/3f4Otu0
How to Program Games: Tile Classics in JS for HTML5 Canvas bit.ly/2ZUfKuG
Next Level CSS Creative Hover & Animation Effects bit.ly/3jEkzju
The Web Developer Bootcamp (Older but still very relevant) bit.ly/2ZZJM0d
Modern HTML & CSS From The Beginning (Including Sass) bit.ly/2Ec6Cch
Advanced CSS and Sass: Flexbox, Grid, Animations and More! bit.ly/3g0uqxT
JavaScript Basics for Beginners bit.ly/32Tn5wq
JavaScript: Understanding the Weird Parts bit.ly/2WVe0zn
The Complete JavaScript Course 2020: Build Real Projects! bit.ly/3fXGwaZ
Modern JavaScript From The Beginning bit.ly/3fWJgWk
#javascript #htmlcanvas #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!
Who says learning JavaScript cannot be fun. Let's take another step towards Front End Web Development mastery and practice fundamental programming principles and techniques in this vanilla JavaScript 2D game tutorial.
PART2: youtu.be/MwTQtPGuBmo
Some people skip my generative art and HTML canvas animation videos and just focus on game tutorials, but I want to show you that all canvas techniques I teach can improve your games, if you get creative with it.
Relevant links:
Sprite sheets and game art: gamedeveloperstudio.com
This tutorial is part of a series, for more game development with pure vanilla JavaScript check out this playlist youtube.com/playlist?list=PLYElE_rzEw_sowQGjRdvwh9eAEt62d_Eu
The main reason that people don't succeed in becoming a self-taught Front End Web Developer is because they loose motivation. My tutorials focus on teaching you everything you need to know about HTML, CSS, JavaScript and HTML5 canvas element, while at the same time building fun, visual and memorable projects.
In today's vanilla JavaScript 2D game tutorial I will show you how to add sound to your games, how to make player character follow the mouse whenever we click somewhere, how to handle simple collision detection that triggers sprite animation and how to rotate our fish sprite correctly to face the direction the player is moving. We will also cover repeating backgrounds, how to handle score and couple of other things. First we will build a solid good quality game skeleton that can be used for more than just this particular fish game. Then we will start adding graphics with sprites, particle effects and make the game look polished and clean.
I made a tutorial on how to rotate elements with vanilla JavaScript on HTML canvas for beginners recently (youtu.be/TBXjWsR7XDA). Today we will use the same technique to rotate player character around, and we will build on it and take it to the next level by making it face mouse and move towards it.
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 HTML 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-
To become a professional Front End Web Developer, you need to practice and work on your skills, these are some of my favourite well structured courses that cover everything you need to know:
JavaScript Beginner Bootcamp (2020) bit.ly/3aqFFhc
20 Web Projects With Vanilla JavaScript bit.ly/3anlCQR
Learn SVG Animation - With HTML, CSS & JavaScript bit.ly/2PRGwOr
HTML, CSS, JavaScript - Build 6 Creative Projects bit.ly/33YIBjT
Object-oriented Programming in JavaScript bit.ly/3f4Otu0
How to Program Games: Tile Classics in JS for HTML5 Canvas bit.ly/2ZUfKuG
Next Level CSS Creative Hover & Animation Effects bit.ly/3jEkzju
The Web Developer Bootcamp (Older but still very relevant) bit.ly/2ZZJM0d
Modern HTML & CSS From The Beginning (Including Sass) bit.ly/2Ec6Cch
Advanced CSS and Sass: Flexbox, Grid, Animations and More! bit.ly/3g0uqxT
JavaScript Basics for Beginners bit.ly/32Tn5wq
JavaScript: Understanding the Weird Parts bit.ly/2WVe0zn
The Complete JavaScript Course 2020: Build Real Projects! bit.ly/3fXGwaZ
Modern JavaScript From The Beginning bit.ly/3fWJgWk
#javascript #htmlcanvas #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!






![CSS Filters - SVG Turbulence Filter Animation [ CSS3 Creative Menu Hover Effects ] Squigglevision
Lets take a look at CSS filters, specifically SVG turbulence animation (and displacement map) which apply perlin noise effect to any HTML element. It can also be applied to HTML canvas so you can try to combine it with any of the canvas effects we created in previous videos. Lets create really cool CSS3 creative menu hover effects also known as Squigglevision.
I have used CSS filters before to create sticky liquid effect. To achieve that we first blur the elements and then we apply strong contrast to make the famous flowing goo effect.
Today I will show you how to rapidly iterate between 5 distortion states using turbulence and displacement map inline SVG filters and how to tweak the effect to create your own variations
There is a patented cartoon animation technique called Squigglevision and we will recreate it with CSS. It was used for shows like Dr Katz and it is a computer animation style, that is supposed to remind viewer of hand drawn animation sketches. It is characteristic by shaking squiggly lines even when the characters are standing still.
Squigglevision cartoon technique is much faster to produce than hand drawn animation, because its made using computer. The shaking lines are done by looping 5 slighly different images over and over.
Relevant links:
https://css-tricks.com/squigglevision-in-css-and-svg/
https://en.wikipedia.org/wiki/Squigglevision
https://en.wikipedia.org/wiki/Perlin_noise
If you want source code to my tutorials I have made some of my videos available on live coding platform Eversparked. You can watch my videos with LIVE browser preview and live code that can be copied and adjusted at any stage. I really like the project idea, I wish I had a tool like that when learning hot to code. Let me know what you think https://bit.ly/2Yxp7ia
You can message me on TWITTER https://twitter.com/code_laboratory
Check out some of my source code on CODEPEN https://codepen.io/franksLaboratory
For more creative CSS animation tutorials for beginners as well as advanced HTML & CSS guides, hover animation and transition examples from scratch with pure vanilla CSS, new experimental animations on buttons, menus, forms and other web elements, CSS animation examples, creative ideas for web design, advanced CSS selectors and the best CSS tricks of 2019, check out my CSS3 & HTML5 playlist:
https://www.youtube.com/watch?v=TbI7TFjlDbU&list=PLYElE_rzEw_t2O2DvfopIoq-diTgefVzV
I also 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 playlist here:
https://www.youtube.com/watch?v=afdHgwn1XCY&list=PLYElE_rzEw_siuo-kkHh5h7Sk 6IPYNh
If you liked this advanced CSS3 tutorial 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.
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.
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 animation tutorial.
#css3 #html5 #frankslaboratory
Music:
Business / Corporate by Mixaund | https://mixaund.bandcamp.com
Music promoted by https://www.free-stock-music.com
The description of this video may contain affiliate links, which means that if you buy one of the products that I recommend, Ill receive a small commision 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! CSS Filters - SVG Turbulence Filter Animation [ CSS3 Creative Menu Hover Effects ] Squigglevision](https://i.ytimg.com/vi/lisZT8JIeKk/mqdefault.jpg)



