Flappy Bird in 1000 lines of C
It uses SDL. Not saying that's good or bad, but it's the first thing I wondered about.
FWIW I had to install some extra dependencies on macos before the build instructions worked.
$ brew install libxmp fluid-synth wavpack
I was just thinking a few days ago that it is surprising flappy bird didn't get invented much earlier. In terms of complexity it seems to be somewhere between pong and Asteroids. Games like Pac-Man and steet fighter are much more complex. Yet flappy bird came out in 2013. Wikipedia puts "Helicopter Game"[0] from 2003 as the first game with flappy bird's game mechanic.[1] That still seems a bit late to me. Am I missing something?
I like these challenges, where people rebuild stuff low level and “line efficient” (not saying this is a good idea in general). This makes me curious and I can learn a lot from these examples.
I was a bit disappointed though to see that this code used SDL for sprites and more stuff though. That’s not 1000 lines anymore imo. Still the code was an interesting read.
Thank you OP
flappy bird is a simple game, 1000 lines sounds like a normal amount(assuming there is a graphics scaffold, which in this case appears to be SDL), and it would indicate that it's not compressed code-golf style
IDE config doesnt belong into vcs. And a screenshot or a GIF would be well appreceated. Other than that, code looks ok for a small project
Cool. It's worth mentioning again, because it seems to not be quite as common knowledge as it should be, C has been deprecated by GO.
Please post screenshots or a video/gif of it in the main Github README.md. Would make this post so much more popular.