Coding Challenge #41: Clappy Bird!
Sure, flappy bird is fun, but what happens if we take away the button and control the bird with clapping! Yes, it's time for Clappy Bird! Code: https://thecodingtrain.com/challenges/41-clappy-bird
πΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/tL29haKoC
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π p5.sound: https://p5js.org/reference/#/libraries/p5.sound
ποΈ p5.AudioIn: https://p5js.org/reference/#/p5.AudioIn
Related Coding Challenges:
π #31 Flappy Bird: https://youtu.be/cXgA1d_E-jY
π #147 Chrome Dinosaur Game: https://youtu.be/l0HoJHc-63Q
π #100 Neuroevolution Flappy Bird: https://youtu.be/c6y21FkaUqw
Timestamps:
0:00 Welcome!
0:34 About the positioning of the pipes
2:10 Implementing spacing to the pipe object
3:35 Moving the center of the space between the pipes to a random location
7:05 Adding a random spacing
8:03 Implementing sound interaction
11:31 Adjusting the threshold with a slider
14:21 Adding another threshold to apply the force only once
17:02 Testing the clappy bird!
17:50 Come up with your own ideas!
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://discord.gg/hPuGy2g
π 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
#flappybird #gamedevelopment #clappybird #javascript #p5js