tubeshowcase●1,059,436 videos♡ My collection 0
← Learn to Code

Learn to Code12:40

Coding Challenge #62.4: Plinko with Matter.js Part 4

The Coding Train ↗

From the creator

I love all things random and chance so why not make a Plink simulation with the matter.js physics engine and p5.js! Code: https://thecodingtrain.com/challenges/62-plinko-with-matterjs 🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/wAe_oPVHo Other Parts of this Challenge: 📺 Plinko with Matter.js Part 1: https://youtu.be/KakpnfDv_f0 📺 Plinko with Matter.js Part 2: https://youtu.be/6s4MJcUyaUE 📺 Plinko with Matter.js Part 3: https://youtu.be/jN-sW-SxNzk 🎥 Previous video: https://youtu.be/0dwJ-bkJwDI?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH 🎥 Next video: https://youtu.be/JunJzIe0hEo?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH 🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH References: 🏓 Matter.js: http://brm.io/matter-js/ 💰 What is Plinko?: http://priceisright.wikia.com/wiki/Plinko Videos: 🚂 Introduction to Matter.js: https://www.youtube.com/watch?v=urR596FsU68 🚂 Inheritance with Prototype in JavaScript: https://www.youtube.com/watch?v=CpmE5twq1h0 🔴 Live Stream #84: https://youtu.be/Iu3M-X1yRFU Related Coding Challenges: 🚂 #20 3D Cloth with Toxiclibs: https://youtu.be/jrk_lOg_pVA 🚂 #98 Quadtree: https://youtu.be/OJxEcs0w_kE 🚂 #160 Spring Forces: https://youtu.be/Rr-5HiXquhw Timestamps: 0:00 Plinko Part 4 1:47 Use the preload function to load a sound.mp3 file 4:39 Use Matter.Events to figure out when the particles hit the plinkos 9:52 Play a sound if there is a collision between a particle and a plinko 11:45 Conclu

Published 2017-03-13 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code