Reproduction of the Atari Inc. pong game from the 1970s.
Based on code from the Go tutorial at https://sdl2.veandco/tutorials/go. Rewritten in C and using SDL2 rendering (as opposed to the older SDL1 surface blitting).
Not tested on anything other than GNU Linux. Make will make two versions: pong requires the assets/ directory, epong has the assets embedded.
pong [ options ] [ width height ]
-bfloat ball speed (0.3 is nice, 1.0 is too fast)
-pfloat paddle speed (1.0 or thereabouts is ok)
-fint frames per second (see how far it can be pushed)
f toggle fullscreen/window
space pause/unpause
m mute/unmute
s/w player 1 paddle
↑/↓ player 2 paddle
esc quit
https://www.libsdl.org/download-2.0.php
https://www.libsdl.org/projects/SDL_ttf
https://www.libsdl.org/projects/SDL_mixer
https://www.libsdl.org/projects/SDL_image