Coding Challenge #138: Angry Birds with Matter.js
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
Other Videos By The Coding Train
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.