Can you please show us how we can split this into multiple files. My makefile is not recognizing the extra files and every example for some reason uses one file. Please make a tutorial about this
If you pause at 28:44 you can see it on Line 267. I used the Fade function and it needs a normalized float (between 0 and 1) so i chose 0.8 to make it 80% opaque / 20% transparent. If you tried to do this by writing something like "WHITE.a = 0.8f" and then using WHITE on the next line, that won't work.
That's easy - C does not support classes. The closest thing we have is structs, which I used instead in this video. The only real change if we had classes, would be that the functions which handle the Apples would be member functions, so instead of the syntax being DrawApple(apple) I would instead have apple.Draw(). Some people think it's cleaner, and in much more complicated games there are other benefits to using a class / Object Oriented approach, but in a game as simple as this it's really just jargon and bloat.
I said "the Language Interpreter" which is the program that your Editor runs to interpret the code in the file and check for errors so we get those nice red lines while editing. Immediately before this I said "the Compiler".. I know C is NOT an interpreted language, that's exactly why I use it.
Can you please show us how we can split this into multiple files. My makefile is not recognizing the extra files and every example for some reason uses one file. Please make a tutorial about this
You spoiled the next video!
@@andrewhamelcodes lol thats why im the Codemaster!
@@andrewhamelcodes Can you show how to make this boiler plate in start like explain this starting code.
Such a lovely video
Incredible video and love the explanations of your entire thought process. One of the best programming videos I've ever seen.
Nice
great video
This is awesome!
May I upload my version of the game to my Github account?
I have no ownership over what you create when you watch these videos: share away!
how do you make the game over background be transparent cause I've tried to set whites alpha to a lower value but it doesn't work.
If you pause at 28:44 you can see it on Line 267. I used the Fade function and it needs a normalized float (between 0 and 1) so i chose 0.8 to make it 80% opaque / 20% transparent.
If you tried to do this by writing something like "WHITE.a = 0.8f" and then using WHITE on the next line, that won't work.
❤
Can i ask if why you did not make this game using class?
That's easy - C does not support classes. The closest thing we have is structs, which I used instead in this video.
The only real change if we had classes, would be that the functions which handle the Apples would be member functions, so instead of the syntax being DrawApple(apple) I would instead have apple.Draw(). Some people think it's cleaner, and in much more complicated games there are other benefits to using a class / Object Oriented approach, but in a game as simple as this it's really just jargon and bloat.
7:39 my nigga really used word interpreter for c programming
I said "the Language Interpreter" which is the program that your Editor runs to interpret the code in the file and check for errors so we get those nice red lines while editing. Immediately before this I said "the Compiler".. I know C is NOT an interpreted language, that's exactly why I use it.