Uploaded May 2022 | Updated September 2026, 2 weeks ago
Make your own 2D adventures with HTML, CSS & plain vanilla JavaScript, no frameworks and no libraries! Today we will apply state design pattern, sprite animation, parallax backgrounds and we will learn how to control FPS with timestamps and delta time. Have fun! :)
Part 1: youtu.be/c-1dBd1_G8A Animating player
Part 2: youtu.be/ug-gdfGb7I8 State management and parallax backgrounds
Part 3: youtu.be/lqNztI7BMf8 Enemy types
Part 4 : youtu.be/6ppfyWdoH3c Collisions & Particles
Part 5 : youtu.be/KICADKr_zeM Win & Lose Conditions, Timer, Clean up (this video)
Part 6: youtu.be/tWS_eURr2_w Bonus features
๐ฎ FULL SERIES:๐ฎ youtube.com/playlist?list=PLYElE_rzEw_uryBrrzu2E626MY4zoXvx2
โค Related Links โค
Art by bevouliin.com check out their website for more game art assets!
Download project sprite sheets:
๐ frankslaboratory.co.uk/downloads/97/enemy_fly.png
๐ฑ frankslaboratory.co.uk/downloads/97/enemy_plant.png
๐ท๏ธ frankslaboratory.co.uk/downloads/97/enemy_spider_big.png
๐ Player: frankslaboratory.co.uk/downloads/97/player.png
Backgrounds:
Layer 1: frankslaboratory.co.uk/downloads/97/layer-1.png
Layer 2: frankslaboratory.co.uk/downloads/97/layer-2.png
Layer 3: frankslaboratory.co.uk/downloads/97/layer-3.png
Layer 4: frankslaboratory.co.uk/downloads/97/layer-4.png
Layer 5: frankslaboratory.co.uk/downloads/97/layer-5.png
Fire texture:
๐ฅ frankslaboratory.co.uk/downloads/97/fire.png
Collision animation:
โ๏ธ frankslaboratory.co.uk/downloads/97/boom.png
โญ๏ธTutorial Contents โญ๏ธ
00:00 Course overview & final project previews
00:19 Dive attack
03:24 Splash particle effects
06:55 Player gets hit
09:51 Collision animations
15:58 Game timer
17:39 Winning and losing the game
20:51 Code clean up
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
Make your own 2D adventures with HTML, CSS & plain vanilla JavaScript, no frameworks and no libraries! Today we will apply state design pattern, sprite animation, parallax backgrounds and we will learn how to control FPS with timestamps and delta time. Have fun! :)
Part 1: youtu.be/c-1dBd1_G8A Animating player
Part 2: youtu.be/ug-gdfGb7I8 State management and parallax backgrounds
Part 3: youtu.be/lqNztI7BMf8 Enemy types
Part 4 : youtu.be/6ppfyWdoH3c Collisions & Particles
Part 5 : youtu.be/KICADKr_zeM Win & Lose Conditions, Timer, Clean up (this video)
Part 6: youtu.be/tWS_eURr2_w Bonus features
๐ฎ FULL SERIES:๐ฎ youtube.com/playlist?list=PLYElE_rzEw_uryBrrzu2E626MY4zoXvx2
โค Related Links โค
Art by bevouliin.com check out their website for more game art assets!
Download project sprite sheets:
๐ frankslaboratory.co.uk/downloads/97/enemy_fly.png
๐ฑ frankslaboratory.co.uk/downloads/97/enemy_plant.png
๐ท๏ธ frankslaboratory.co.uk/downloads/97/enemy_spider_big.png
๐ Player: frankslaboratory.co.uk/downloads/97/player.png
Backgrounds:
Layer 1: frankslaboratory.co.uk/downloads/97/layer-1.png
Layer 2: frankslaboratory.co.uk/downloads/97/layer-2.png
Layer 3: frankslaboratory.co.uk/downloads/97/layer-3.png
Layer 4: frankslaboratory.co.uk/downloads/97/layer-4.png
Layer 5: frankslaboratory.co.uk/downloads/97/layer-5.png
Fire texture:
๐ฅ frankslaboratory.co.uk/downloads/97/fire.png
Collision animation:
โ๏ธ frankslaboratory.co.uk/downloads/97/boom.png
โญ๏ธTutorial Contents โญ๏ธ
00:00 Course overview & final project previews
00:19 Dive attack
03:24 Splash particle effects
06:55 Player gets hit
09:51 Collision animations
15:58 Game timer
17:39 Winning and losing the game
20:51 Code clean up
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










