Can I code Pong?
Why Stack Overflow recommends it
Stack Overflow users link it when answering questions about Pong-style games, especially paddle collisions and how the hit position changes the ball's bounce angle.
Recommended by 3 people across 3 different months, 2017 to 2019.
What it is
Daniel Shiffman of The Coding Train attempts to build the classic Pong game live in Processing (Java), covering puck and paddle classes, collision checks, scoring, sound, and paddle-hit angles. It is a long, unscripted coding challenge with timestamped sections and a p5.js version of the sketch linked.
What people said
Recommends FunThomas · 2017-08 · Stack Overflow · on “How can I change a variable when 2 objects collide?”
There is a really fun coding challenge [this video] from Daniel Shiffman about programming a Pong example. It's in Java using Processing, but it's fun to watch and you learn a lot about things like collusion detecting:
Recommends Rupert Russell · 2018-11 · Stack Overflow · on “How to include the paddle in the pong game?”
You may find this youtube video worth watching it's created by a guy called Dan Shiffman his website is The Coding Train: [LINK] Coding Challenge #67: Pong! [this video] I find his coding challenges very useful
Recommends J.D. · 2019-02 · Stack Overflow · on “How to increase the speed of the ball when it hits the edge of a paddle and then return back to original speed?”
This video [this video] is a tutorial about a pong game. I haven't watched it, but I know that at some point (about 75% in) code is added that makes the area where the paddle is hit affect the angle of reflection. Near the edge of the paddle gets a greater angle. I think you can use the same implementation to affect the speed of the ball.