The program is almost fully following Francesc Campoy's tutorial and walkthrough from Just For Func episodes #6, 7 and 8 where Francesc walks you through creating and implementing the game using SDL library.
The final result is a fully functional game with mechanics like that of Flappy Bird.
See Francesc's version at https://github.com/campoy/flappy-gopher
Please do check out his work and the Just For Func video series on YouTube is phenomenal.
You can find that at https://youtube.com/justforfunc
Also follow Francesc on Twitter at https://twitter.com/francesc
Much credit & appreciation to Francesc for all his work on Just For Func.