Uploaded July 2022 | Updated November 2026, 19 hours ago
Coders! Let's explore an alien planet and learn all the techniques you need to make your own 2D games with vanilla JavaScript, HTML5, CSS3 and HTML Canvas. From sprite animation to parallax backgrounds, today we will build a game completely from scratch, with no frameworks and no libraries, using just HTML, CSS and plain vanilla JavaScript. Have fun!
🐟EXTENDED 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 the LIKE on the video if you want more free game art soon! :D
Player: frankslaboratory.co.uk/downloads/103/player.png
Projectile: frankslaboratory.co.uk/downloads/103/projectile.png
Particle gears: frankslaboratory.co.uk/downloads/103/gears.png
⚙️ Backgrounds:
Layer 1: frankslaboratory.co.uk/downloads/103/layer1.png
Layer 2: frankslaboratory.co.uk/downloads/103/layer2.png
Layer 3: frankslaboratory.co.uk/downloads/103/layer3.png
Layer 4: frankslaboratory.co.uk/downloads/103/layer4.png
🐟 Enemies:
Angler 1: frankslaboratory.co.uk/downloads/103/angler1.png
Angler 2: frankslaboratory.co.uk/downloads/103/angler2.png
Lucky Fish: frankslaboratory.co.uk/downloads/103/lucky.png
Hive Whale: frankslaboratory.co.uk/downloads/103/hivewhale.png
Drone: frankslaboratory.co.uk/downloads/103/drone.png
☁️ Collision Animations:
Smoke: frankslaboratory.co.uk/downloads/103/smokeExplosion.png
Fire: frankslaboratory.co.uk/downloads/103/fireExplosion.png
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:47 HTML & CSS setup
00:02:20 Basic JavaScript setup
00:04:39 Object Oriented programming with JavaScript
00:07:05 Creating Player and Game objects
00:12:58 Animation loop
00:16:16 Keyboard inputs
00:25:55 Creating projectiles
00:33:02 Periodic events
00:38:10 Drawing game UI
00:41:00 Base enemy class
00:48:59 Collision detection between rectangles
00:54:16 Drawing game score
00:57:29 Win and lose condition
00:59:32 Counting game time
01:02:47 Animated parallax backgrounds
01:13:00 Sprite animation with JavaScript
01:16:42 Creating a debug mode
01:18:18 Animating enemy sprite sheets
01:24:55 Night Angler enemy class
01:27:19 Lucky Fish enemy class
01:28:42 Collecting power ups
01:36:31 Drawing projectiles as images
01:37:41 Custom fonts and game text
01:40:23 Cleaning up
01:42:31 Particle effects and physics
01:54:43 Particle rotation
01:58:27 Tweaks and fixes
02:01:26 Hive Whale enemy class
02:04:26 Drone enemy class
02:09:10 Dust effect animation
02:24:16 Fire effect animation
02:25:43 Tuning game difficulty
02:29:06 What to do next?
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
Coders! Let's explore an alien planet and learn all the techniques you need to make your own 2D games with vanilla JavaScript, HTML5, CSS3 and HTML Canvas. From sprite animation to parallax backgrounds, today we will build a game completely from scratch, with no frameworks and no libraries, using just HTML, CSS and plain vanilla JavaScript. Have fun!
🐟EXTENDED 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 the LIKE on the video if you want more free game art soon! :D
Player: frankslaboratory.co.uk/downloads/103/player.png
Projectile: frankslaboratory.co.uk/downloads/103/projectile.png
Particle gears: frankslaboratory.co.uk/downloads/103/gears.png
⚙️ Backgrounds:
Layer 1: frankslaboratory.co.uk/downloads/103/layer1.png
Layer 2: frankslaboratory.co.uk/downloads/103/layer2.png
Layer 3: frankslaboratory.co.uk/downloads/103/layer3.png
Layer 4: frankslaboratory.co.uk/downloads/103/layer4.png
🐟 Enemies:
Angler 1: frankslaboratory.co.uk/downloads/103/angler1.png
Angler 2: frankslaboratory.co.uk/downloads/103/angler2.png
Lucky Fish: frankslaboratory.co.uk/downloads/103/lucky.png
Hive Whale: frankslaboratory.co.uk/downloads/103/hivewhale.png
Drone: frankslaboratory.co.uk/downloads/103/drone.png
☁️ Collision Animations:
Smoke: frankslaboratory.co.uk/downloads/103/smokeExplosion.png
Fire: frankslaboratory.co.uk/downloads/103/fireExplosion.png
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:47 HTML & CSS setup
00:02:20 Basic JavaScript setup
00:04:39 Object Oriented programming with JavaScript
00:07:05 Creating Player and Game objects
00:12:58 Animation loop
00:16:16 Keyboard inputs
00:25:55 Creating projectiles
00:33:02 Periodic events
00:38:10 Drawing game UI
00:41:00 Base enemy class
00:48:59 Collision detection between rectangles
00:54:16 Drawing game score
00:57:29 Win and lose condition
00:59:32 Counting game time
01:02:47 Animated parallax backgrounds
01:13:00 Sprite animation with JavaScript
01:16:42 Creating a debug mode
01:18:18 Animating enemy sprite sheets
01:24:55 Night Angler enemy class
01:27:19 Lucky Fish enemy class
01:28:42 Collecting power ups
01:36:31 Drawing projectiles as images
01:37:41 Custom fonts and game text
01:40:23 Cleaning up
01:42:31 Particle effects and physics
01:54:43 Particle rotation
01:58:27 Tweaks and fixes
02:01:26 Hive Whale enemy class
02:04:26 Drone enemy class
02:09:10 Dust effect animation
02:24:16 Fire effect animation
02:25:43 Tuning game difficulty
02:29:06 What to do next?
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


![Learn JavaScript By Building Games | How To Make A Game With Vanilla JS [Frogger]
In todays creative coding tutorial we will learn JavaScript by building games. I will teach you how to make a game with vanilla JS and HTML canvas element all from scratch with no libraries. We will focus on collision detection, keyboard input, frame-rate optimization and sprite animation, but every technique we learn can be used for other web development projects as well, not just for games. The skills and techniques I am about to teach you today will help you build your own unique games faster, but you can also apply them in any other JavaScript project, we are using pure vanilla JavaScript so everything we learn here are transferable skills.
LIKE the video please if youre getting value out of my tutorials and SUBSCRIBE if you want to learn more vanilla JavaScript!
Some of my favorite UDEMY courses:
*** Creative coding ***
How to Program Games: Tile Classics in JS for HTML5 Canvas https://bit.ly/2ZUfKuG
Next Level CSS Creative Hover & Animation Effects https://bit.ly/3jEkzju
*** CSS / Front-end web development ***
The Web Developer Bootcamp (Older but still very relevant) https://bit.ly/2ZZJM0d
Modern HTML & CSS From The Beginning (Including Sass) https://bit.ly/2Ec6Cch
Advanced CSS and Sass: Flexbox, Grid, Animations and More! https://bit.ly/3g0uqxT
*** Vanilla JavaScript from beginner to advanced ***
JavaScript Basics for Beginners https://bit.ly/32Tn5wq
JavaScript: Understanding the Weird Parts https://bit.ly/2WVe0zn
The Complete JavaScript Course 2020: Build Real Projects! https://bit.ly/3fXGwaZ
Modern JavaScript From The Beginning https://bit.ly/3fWJgWk
Object-oriented Programming in JavaScript https://bit.ly/3f4Otu0
Recommended book: Game Programming Patterns https://amzn.to/2ZlnplB (Amazon)
If you are really interested in game development check out this book. Its written in pseudo-code so it can be used for any programming language, if you are able to follow this video you will be able to use this book. It covers game development concepts that will eventually help you how to create much more complicated games, frogger game we are building today is very basic, but it is a nice project for beginners to practice JavaScript on.
Sprites & background images:
Project files:
All files zip: https://www.frankslaboratory.co.uk/downloads/Frogger/Frogger.zip
Individual files:
Background https://www.frankslaboratory.co.uk/downloads/Frogger/background.png
Background 2 https://www.frankslaboratory.co.uk/downloads/Frogger/background_lvl2.png
Background 3 https://www.frankslaboratory.co.uk/downloads/Frogger/river_bank.png
Background 4 https://www.frankslaboratory.co.uk/downloads/Frogger/grass.png
Frogger spritesheet https://www.frankslaboratory.co.uk/downloads/Frogger/frog_spritesheet.png
Cars https://www.frankslaboratory.co.uk/downloads/Frogger/cars.png
Collisions https://www.frankslaboratory.co.uk/downloads/Frogger/collisions.png
Turtles https://www.frankslaboratory.co.uk/downloads/Frogger/turtles.png
Log https://www.frankslaboratory.co.uk/downloads/Frogger/log.png
This tutorial is part of a series - COMPLETE PLAYLIST:
https://www.youtube.com/watch?v=lGJ9i6CYKyQ&list=PLYElE_rzEw_siuo-kkHh5h7Sk 6IPYNh
Today we are going to take things we have have learned in this series so far - and create a bigger polished game you can show off on your coding portfolio or personal website. It is a remake of classic Konami arcade game released in 1981, it received a popular sequel for PC and PlayStation 1 in 1997 and there are multiple clones for this game concept like go chicken go. Lets build FROGGER! :)
Tools I use:
Adobe Creative Cloud https://bit.ly/3e60cI0 (official Adobe website to buy Creative Suite applications)
Recommended channel: Ania Kubów #JavaScriptGames
https://www.youtube.com/channel/UC5DNytAJ6_FISueUfzZCVsw
You can message me on TWITTER https://twitter.com/code_laboratory
Check out some of my source code on CODEPEN https://codepen.io/franksLaboratory
#javascript #htmlcanvas #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 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! Learn JavaScript By Building Games | How To Make A Game With Vanilla JS [Frogger]](https://i.ytimg.com/vi/GXvNEwu9cgM/mqdefault.jpg)

![CSS Parallax Tutorial for Beginners [ Creative Web Design Ideas ] Animated CSS3 Card Hover Effects
Hi coders, I have couple more creative web design ideas for you today, in this CSS parallax tutorial for beginners I want to talk about parallax effect and its implementation in web development and web design with nothing but CSS & HTML. We will build a project as usual, this time in will include really cool animated CSS3 card hover effects, I really hope you like it. In general definition parallax is the perceived change in position of an object from two different places. It occurs when an object is viewed from different positions. In animation and web design - parallax is a technique in computer graphics where background images move past the camera slower and foreground images move faster, tricking our brain into creating an illusion of depth in a 2D scene. We will use it to create animated cards. There are multiple ways to implement parallax with CSS, we will do it the proper way, with CSS3 transforms, and we will learn about not commonly used translateZ CSS3 function. In todays beginner level tutorial we will also take a look at CSS perspective property and I will show you exactly how to use it and what it does.
Inspired by:
https://codepen.io/cobra_winfrey/pen/mdeWpZZ
https://twitter.com/cobra_winfrey
IMAGES
balloon:
https://imgur.com/1sufh5R
https://ibb.co/DzDs5P0
https://pixeldra.in/u/U5XucH5Z
clown:
https://imgur.com/a/ybcVjrI
https://ibb.co/nLS5jXq
https://pixeldra.in/u/9mJgWdRY
town:
https://imgur.com/a/c1uM1k2
https://ibb.co/JrFGg5V
https://pixeldra.in/u/mb9CFMod
all 3 images in zip archive:
https://we.tl/t-VnAdT4cHwi
*** Creative Web Design Ideas CSS Parallax Tutorial for Beginners Animated CSS3 Card Hover Effects ***
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.
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 CSS Parallax Tutorial for Beginners [ Creative Web Design Ideas ] Animated CSS3 Card Hover Effects](https://i.ytimg.com/vi/Hx2R1GbVwr0/mqdefault.jpg)





