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: https://youtu.be/c-1dBd1_G8A Animating player
Part 2: https://youtu.be/ug-gdfGb7I8 State management and parallax backgrounds
Part 3: https://youtu.be/lqNztI7BMf8 Enemy types (this video)
???? FULL SERIES:???? https://youtube.com/playlist?list=PLYElE_rzEw_uryBrrzu2E626MY4zoXvx2
❤ Related Links ❤
Art by https://bevouliin.com/ check out their website for more game art assets!
Download project sprite sheets:
???? https://www.frankslaboratory.co.uk/downloads/97/enemy_fly.png
???? https://www.frankslaboratory.co.uk/downloads/97/enemy_plant.png
????️ https://www.frankslaboratory.co.uk/downloads/97/enemy_spider_big.png
???? Player: http://frankslaboratory.co.uk/downloads/97/player.png
Backgrounds:
Layer 1: https://www.frankslaboratory.co.uk/downloads/97/layer-1.png
Layer 2: https://www.frankslaboratory.co.uk/downloads/97/layer-2.png
Layer 3: https://www.frankslaboratory.co.uk/downloads/97/layer-3.png
Layer 4: https://www.frankslaboratory.co.uk/downloads/97/layer-4.png
Layer 5: https://www.frankslaboratory.co.uk/downloads/97/layer-5.png
⭐️Tutorial Contents ⭐️
00:00 Course overview & final project previews
00:26 Enemy class
01:08 Subclassing in JavaScript
03:13 How to use super keyword
04:16 Flying enemy class
16:51 Ground enemy class
19:23 Climbing enemy class
Let's be friends
???? You can message me on TWITTER https://twitter.com/code_laboratory
???? Check out some of my source code on CODEPEN https://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