I was using gcc and didn't back up, or use any kind of SCM software, when I went to compile if forgot a single flag and lost about 400 lines of code! It went a little something like this:
gcc -o main.c physics.c timing.c -lSDLinstead of this, as it should have been:
gcc -o ../pong main.c physics.c timing.c -lSDL
Now, all I am left with is the knowledge that I learned while making it, a memory of 5 hours of work (- maybe 30 minutes for the simple generic functions, that I have in physics.c, I already wrote timing.c for something else), and a semi-finished executable.
Remember to back up!
I think I am going to cry in the corner now.
P.S. At this point, all I had was a functioning scoring and collision system, as well as a basic state machine. Do you think that it would be wise to start again on the same project and maybe do it a little better with my new insight? Or just start on my next project?












