This is external Code, a Pong-Clone Prototype in C/C++.
---DO NOT CLONE FOR A REFERENCE PONG---
There are plenty of others.
However Gamestates should be implemented.
This uses SDL2 Renderer and the extensions
Help on Issue
More Example Code
Other Pong Clones utilizing SDL:
My own Pong-Clone in C
Pong-Clone in C
21st-century-pong in C++
Pong-macaw in Go using Author's own engine
Oh well, and then there is always github-search and google.
Pong usually leads to a Breakout
In C++ but SDL 1:
AAron Cox Tut
AAron Cox BB Tut
In JS but tons of Eye Candy
In Java - Stanford Assignment
Breaking Down Breakout
Some higher quality clones with sources:
Those are some titles like Arkanoid, DX • BΔLL, DX-Ball 2, Rival Ball, Super DX-Ball ...
Ranking of Breakout Clones