Coding Challenge #67: Pong!

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



Duration: 1:08:19
284,288 views
4,602


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
💖 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

#pongvideogame #polarcoordinates #processing







Tags:
live
programming
daniel shiffman
creative coding
coding challenge
tutorial
coding
coding train
the coding train
countdown
countdown coding
coding challenge timer
programming timer
pong
classic video game
pong coding
pong programming
pong video game coding
pong java
pong processing
pong processing(java)
Processing
game processing
challenge
programming challenge
processing tutorial
object oriented programming
pong oop
pong object oriented programming