Coding Challenge #138: Angry Birds with Matter.js

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=TDQzoe9nslY



Game:
Duration: 41:36
208,806 views
4,986


An attempt to implement the basic mechanics of Angry Birds in JavaScript using p5.js and the matter.js physics engine. Code: https://thecodingtrain.com/challenges/138-angry-birds-with-matterjs

πŸ•ΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/UOR4nIcNS

πŸŽ₯ Previous video: https://youtu.be/3_0Ax95jIrk?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ Next video: https://youtu.be/PoW8g67XNxA?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH

References:
🐦 Angry Birds: https://www.angrybirds.com/
πŸš’ Matter.js: http://brm.io/matter-js/

Videos:
πŸš‚ Matter.js Physics: https://youtube.com/playlist?list=PLRqwX-V7Uu6bLh3T_4wtrmVHOrOEM1ig_
πŸš‚ Inheritance in JavaScript: https://youtu.be/MfxBfRD0FVU
πŸš‚ Inheritance in Java: https://youtu.be/e6eXD8DHc_A
πŸ•ΉοΈ Phaser Game Development with Catt Small: https://youtu.be/T9kOFSFvgKc
πŸ”΄ Coding Train Live 171: https://youtu.be/EvOC_vyFAiI?t=5047s

Related Coding Challenges:
πŸš‚ #62 Plinko with Matter.js: https://youtu.be/KakpnfDv_f0
πŸš‚ #41 Clappy Bird: https://youtu.be/aKiyCeIuwn4
πŸš‚ #31 Flappy Bird: https://youtu.be/cXgA1d_E-jY
πŸš‚ #20 3D Cloth with Toxiclibs: https://youtu.be/jrk_lOg_pVA
πŸš‚ #147 Chrome Dinosaur Game: https://youtu.be/l0HoJHc-63Q

Timestamps:
0:00 Introduction!
1:30 Getting started with an Object Oriented Approach
5:08 Adding and setting up Matter.js
11:05 Adding and using the physics engine
12:52 Making the ground static
15:38 Adding mouse constraints to control the bird
21:20 Adding the slingshot
27:00 Launching the bird with the slingshot!
30:57 Fixing bugs and things to refactor later!
33:07 Replacing the shapes with images
37:15 Adding restitution
38:47 Wrapping things up and improvements to make!

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

πŸš‚ Website: http://thecodingtrain.com/
πŸ‘Ύ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
πŸ’‘ GitHub: https://github.com/CodingTrain
πŸ’¬ Discord: https://thecodingtrain.com/discord
πŸ’– Membership: http://youtube.com/thecodingtrain/join
πŸ›’ Store: https://standard.tv/codingtrain
πŸ–‹οΈ Twitter: https://twitter.com/thecodingtrain
πŸ“Έ Instagram: https://www.instagram.com/the.coding.train/

πŸŽ₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

πŸ”— p5.js: https://p5js.org
πŸ”— p5.js Web Editor: https://editor.p5js.org/
πŸ”— Processing: https://processing.org

πŸ“„ Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new

#matterjs #physicsengine2d #angrybirds #p5js #javascript







Tags:
daniel shiffman
coding
the coding train
coding challenge
creative coding
code challenge
javascript (programming language)
programming challenge
matter
matterjs
angry birds
angry birds javascript
angry birds js
angry birds game
diy angry birds
physics engine
physics engine javascript
collision detection js
collision detection javascript
physics javascript
physics engine p5.js
physics engine intro
physics 2d javascript
physics engine 2d
matter.js
p5.js



Other Statistics

Angry Birds Statistics For The Coding Train

At present, The Coding Train has 208,806 views spread across 1 video for Angry Birds, and less than an hour worth of Angry Birds videos were uploaded to his channel. This is less than 0.07% of the total video content that The Coding Train has uploaded to YouTube.