JavaScript GameDev Tutorial – Code an Animated Physics Game [Full Course]

preview_player
Показать описание
Learn how to code a JavaScript Game featuring interesting physics and AI mechanics.

What makes a great game? Is it about beautiful, polished visuals or about gameplay that feels good and responsive? Is it about unique ideas, or maybe it's the little details, special secrets and Easter eggs? What are the ingredients in a perfect game development recipe? Let's explore fantasy mushroom forest theme and learn all the techniques you need to make your own 2D games with vanilla JavaScript, HTML5, CSS3 and HTML Canvas.

✏️ Course created by @Frankslaboratory

⭐️ Assets ⭐️

You will learn:
- How to implement a very simple AI to make the creatures feel alive
- How to control the FPS of our game and how to measure time to trigger periodic events
- How to restart the game by pressing a button
- How to apply collision detection, resolve collisions and use that to simulate physics
- How to use the built-in drawImage method to draw randomized game environments and animated characters from a sprite sheet
- How to capture mouse position and animate an 8 directional sprite sheet based on the relative position between the mouse and the player character
- How to use HTML5, CSS3 and plain vanilla JavaScript to build a game from scratch. We will write and understand every line of code, we will not rely on any external frameworks or libraries
... and much more

⭐️ Contents ⭐️
⌨️(0:00:00) Intro
⌨️(0:01:01) Basic setup
⌨️(0:04:51) Object oriented programming in JavaScript
⌨️(0:09:14) Drawing the player
⌨️(0:16:24) Mouse controls
⌨️(0:22:24) Making the player move
⌨️(0:30:04) Creating obstacles
⌨️(0:36:37) Non-overlapping obstacles
⌨️(0:43:12) Randomized images from a sprite sheet
⌨️(0:48:27) Positioning rules
⌨️(0:54:26) Reusable collision detection method
⌨️(0:58:31) Let's add physics
⌨️(1:06:38) 8-directional sprite animation
⌨️(1:10:52) Animation angles
⌨️(1:17:58) Debug mode
⌨️(1:21:31) Player movement boundaries
⌨️(1:24:20) FPS
⌨️(1:33:59) Egg class
⌨️(1:38:52) Periodically adding new eggs
⌨️(1:45:51) Egg physics
⌨️(1:51:26) Draw order
⌨️(1:59:44) Enemy class
⌨️(2:11:03) Larva class
⌨️(2:14:30) Egg hatching
⌨️(2:24:28) Larva sprites and collisions
⌨️(2:29:06) Gaining score points
⌨️(2:31:47) Particle effects
⌨️(2:40:42) Particle motion
⌨️(2:47:46) Randomized enemy skins
⌨️(2:52:09) Win and lose condition
⌨️(3:02:41) Restart game

🎉 Thanks to our Champion and Sponsor supporters:
👾 Nattira Maneerat
👾 Heather Wcislo
👾 Serhiy Kalinets
👾 Erdeniz Unvan
👾 Justin Hual
👾 Agustín Kussrow
👾 Otis Morgan

--

Рекомендации по теме
Комментарии
Автор

Hi everyone. Hope you have fun with the project. If you have any questions, let me know! You can take the art assets and use them for other games as well if you want 😊

Frankslaboratory
Автор

I've done a lot of online coding tutorials, and you're the first person who I really feel is teaching me how to write good, clean, maintainable code. Most tutorials I get halfway through and think 'What a mess!', but I finish yours all the way through. Thank you!

AnyWayICan
Автор

I am just starting to learn about game engines and watching this really helped me understand what is happening in the background, but not only that, WHY it is happening and that is an amazing insight. Thank you!

birdiewd
Автор

What's great about this is how he also explains important JS topics as he builds the game. Subbing to Franks Laboratory!

FueledByIndomie.
Автор

Yes! Finally a course I've been looking for ages! You're my hero!

skyblue
Автор

This is one hell of a tutorial that I found, it explains all the code function in details. Subscribed!

mikahoy
Автор

this guy is the reason i am learning 2d graphics programming using canvas 2d api.

hl
Автор

Really interesting movie, the channel can be ranked as the best open university for beginners. thank you very much for your generosity.

tigeranimal
Автор

Your project has been an incredibly fulfilling experience! I've had the pleasure of delving into the depths of the navigator and it's been a thrill to work on. Thank you for this wonderful opportunity!🤩🤩🤩🤩🤩🤩🤩🤩🥳🤯

tigeranimal
Автор

Wow! he is my favorite Youtuber. Glad to see you here, Frank! and thank you so much for the tutorial it really helped me a lot!

comoyun
Автор

I did it! very nice course! it has content until the last minute, thank you very much!

salva
Автор

The real js games master. Thank you for sharing I have learned a lot. Looking forward to tutorial using typescript

broadshare
Автор

Thank you ! Had so much fun practising my JS!

ernsttheart
Автор

I don't know how to explain it but this thumbnail was so good that I had to click. I'm not even interested in game creation.

znttthefox
Автор

I did it, thankyou so much for putting this together, i had a wonderful time following along and you are a wonderful teacher, thanks again 🥳🥳.

larklandlover
Автор

I love you guys and your videos, will definitely watch after I'm done with your previous tutorial, thank you for your passion and for your hard work!

a.c.
Автор

This channel is the best channel on youtube

littlecube
Автор

Brilliant tutorial! I learned a lot about es6 javascript and oop while getting to create a pretty cool game. Thanks Frank!

hareshwedanayake
Автор

This's awesome. You're excellent teacher. I learnt a lot from your detailed tutorial. Thanks for your hard work <3

namthanhnguyen
Автор

That's awesome. Everyone please follow Frank's laboratory. His channel is awesome❤

gardenkittens