Uploaded July 2023 | Updated September 2026, 1 week ago
Spaceships, lazers and aliens. Let's build a game from scratch with plain vanilla JavaScript and learn about game development and object-oriented programming. Our JavaScript game will be loosely inspired by the iconic space invaders arcade, but we will add some fun bonus features like super weapons, boss battles and different enemy types. While we do that we will learn about fundamental programming principles with JavaScript and object-oriented programming.
๐ Full EXTENDED version includes: 4 unique enemy types, full source code from 8 stages throughout the project, 8 boss skins, super weapons and more. Check out the trailer and feature overview here: udemy.com/course/remake-retro-games-with-javascript/?referralCode=2ACCA21F16FE78E631F7
Part 1: this video (youtu.be/cuudnyDyWGE)
Part 2: youtu.be/oULPfiGeUV0
Part 3: youtu.be/bobqrOT-cVI
Part 4: youtu.be/nwPBVwtsVys
Playlist: youtube.com/playlist?list=PLYElE_rzEw_tw6scwjv96oEABmnMSQoQW
๐ฝ Download Project Art assets ๐ฝ
Background: frankslaboratory.co.uk/downloads/125/background.png
Beetlemorph enemy: frankslaboratory.co.uk/downloads/125/beetlemorph.png
Player space ship: frankslaboratory.co.uk/downloads/125/player.png
Player jets: frankslaboratory.co.uk/downloads/125/player_jets.png
(if you can't download the files, try to use a different browser or VPN to change your country, also leave a comment so I can fix it)
๐ Tutorial Contents ๐
00:00:00 Intro
00:00:44 Project setup
00:05:23 Game and player objects
00:11:00 Keyboard controls
00:18:27 Object pool design pattern
00:31:28 Enemy waves
00:45:02 Collision detection
00:53:05 Score and game text
01:05:53 Game restart method
01:11:36 Beetlemorph enemy class
01:16:26 Sprite animation explained
01:27:02 Animation timing
01:37:17 Player animation
Space Invaders was released in arcades across Japan in the summer of 1978. Back in the day, the processors were not powerful enough to move the entire army of aliens at the speed the designer Tomohiro Nishikado intended, but as the player defeated enemies, it freed more processor memory and the game was getting faster and faster the fewer enemies were on screen. It also affected the speed of background music. It wasn't intended but this rising difficulty bug became a game feature. We will create a variation on this by making the enemies come in larger and larger waves. I will be using NO frameworks and no libraries and I will explain every line of code as usual, because only when you fully understand the code can you modify and add your own features later if that's what you want to do.
If you want to SUPPORT me you can use the links below and get some one my EXTENDED classes! ๐ช
udemy.com/course/learn-creative-coding-with-vanilla-javascript/?referralCode=7C560D4661C5C59262BB
udemy.com/course/learn-game-development-with-javascript/?referralCode=69874A38D543D7F510F2
udemy.com/course/creative-coding-deep-dive-for-beginners/?referralCode=F43E8FCE60957A64DF4A
udemy.com/course/build-animated-physics-game-with-javascript/?referralCode=B4482AF631243104650B
udemy.com/course/learn-html-canvas-pixels-particles-physics/?referralCode=F7977062A4BC964A1F5E
udemy.com/course/remake-retro-games-with-javascript/?referralCode=2ACCA21F16FE78E631F7
udemy.com/course/learn-html-canvas-advanced-text-effects/?referralCode=4C5821D2D04048CC4A01
Get Skillshare FREE for 1 month: โ๐
skillshare.com/en/r/profile/Frank-Dvorak/507488567?gr_tch_ref=on&gr_trp=on
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
Spaceships, lazers and aliens. Let's build a game from scratch with plain vanilla JavaScript and learn about game development and object-oriented programming. Our JavaScript game will be loosely inspired by the iconic space invaders arcade, but we will add some fun bonus features like super weapons, boss battles and different enemy types. While we do that we will learn about fundamental programming principles with JavaScript and object-oriented programming.
๐ Full EXTENDED version includes: 4 unique enemy types, full source code from 8 stages throughout the project, 8 boss skins, super weapons and more. Check out the trailer and feature overview here: udemy.com/course/remake-retro-games-with-javascript/?referralCode=2ACCA21F16FE78E631F7
Part 1: this video (youtu.be/cuudnyDyWGE)
Part 2: youtu.be/oULPfiGeUV0
Part 3: youtu.be/bobqrOT-cVI
Part 4: youtu.be/nwPBVwtsVys
Playlist: youtube.com/playlist?list=PLYElE_rzEw_tw6scwjv96oEABmnMSQoQW
๐ฝ Download Project Art assets ๐ฝ
Background: frankslaboratory.co.uk/downloads/125/background.png
Beetlemorph enemy: frankslaboratory.co.uk/downloads/125/beetlemorph.png
Player space ship: frankslaboratory.co.uk/downloads/125/player.png
Player jets: frankslaboratory.co.uk/downloads/125/player_jets.png
(if you can't download the files, try to use a different browser or VPN to change your country, also leave a comment so I can fix it)
๐ Tutorial Contents ๐
00:00:00 Intro
00:00:44 Project setup
00:05:23 Game and player objects
00:11:00 Keyboard controls
00:18:27 Object pool design pattern
00:31:28 Enemy waves
00:45:02 Collision detection
00:53:05 Score and game text
01:05:53 Game restart method
01:11:36 Beetlemorph enemy class
01:16:26 Sprite animation explained
01:27:02 Animation timing
01:37:17 Player animation
Space Invaders was released in arcades across Japan in the summer of 1978. Back in the day, the processors were not powerful enough to move the entire army of aliens at the speed the designer Tomohiro Nishikado intended, but as the player defeated enemies, it freed more processor memory and the game was getting faster and faster the fewer enemies were on screen. It also affected the speed of background music. It wasn't intended but this rising difficulty bug became a game feature. We will create a variation on this by making the enemies come in larger and larger waves. I will be using NO frameworks and no libraries and I will explain every line of code as usual, because only when you fully understand the code can you modify and add your own features later if that's what you want to do.
If you want to SUPPORT me you can use the links below and get some one my EXTENDED classes! ๐ช
udemy.com/course/learn-creative-coding-with-vanilla-javascript/?referralCode=7C560D4661C5C59262BB
udemy.com/course/learn-game-development-with-javascript/?referralCode=69874A38D543D7F510F2
udemy.com/course/creative-coding-deep-dive-for-beginners/?referralCode=F43E8FCE60957A64DF4A
udemy.com/course/build-animated-physics-game-with-javascript/?referralCode=B4482AF631243104650B
udemy.com/course/learn-html-canvas-pixels-particles-physics/?referralCode=F7977062A4BC964A1F5E
udemy.com/course/remake-retro-games-with-javascript/?referralCode=2ACCA21F16FE78E631F7
udemy.com/course/learn-html-canvas-advanced-text-effects/?referralCode=4C5821D2D04048CC4A01
Get Skillshare FREE for 1 month: โ๐
skillshare.com/en/r/profile/Frank-Dvorak/507488567?gr_tch_ref=on&gr_trp=on
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)









