tubeshowcaseโ—913,333 videosโ™ก My collection 0
โ† Learn to Code

Learn to Code1:08:19

Can I code Pong?

The Coding Train โ†—

From the creator

In this challenge, I attempt (emphasis on the word "attempt") to program the classic video game Pong in Processing (Java). Code: https://thecodingtrain.com/challenges/67-pong ๐Ÿ•น๏ธ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/CKCwTIm3S ๐ŸŽฅ Previous video: https://youtu.be/MLtAMg9_Svw?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH ๐ŸŽฅ Next video: https://youtu.be/piBq7VD0ZSo?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH ๐ŸŽฅ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH References: ๐Ÿ—„ Pong on Wikipedia: https://en.wikipedia.org/wiki/Pong ๐Ÿ“ Paddle angles drawing: https://i1.wp.com/zekechan.net/wp-content/uploads/2015/07/pong-05b.png?resize=600%2C500 Videos: ๐Ÿš‚ My Video on Polar Coordinates: https://youtu.be/O5wjXoFrau4 ๐ŸŽฅ Video Games track: https://thecodingtrain.com/tracks/games ๐Ÿ”ด Coding Train Live 87: https://youtu.be/hVSHlFjTeqg?t=3115s Timestamps: 0:00 Introduction 2:05 Elements of Pong 5:07 Puck class 10:17 Paddle class 15:15 Move the paddles 20:29 Check if puck hits paddle 27:08 Check puck direction 40:56 Add score 42:30 Add sound 48:05 Constrain angle 57:05 Map the angle 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 ๐Ÿ’– Membe

Published 2017-03-27 ยท Watch on YouTube โ†—
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code