Making the most COMMON "First Game" In Raylib with C

Поділитися
Вставка
  • Опубліковано 29 січ 2025

КОМЕНТАРІ • 17

  • @The_Codemaster144k
    @The_Codemaster144k Рік тому +3

    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

    • @andrewhamelcodes
      @andrewhamelcodes  Рік тому +6

      You spoiled the next video!

    • @The_Codemaster144k
      @The_Codemaster144k Рік тому +4

      @@andrewhamelcodes lol thats why im the Codemaster!

    • @Jitesh-ek5xf
      @Jitesh-ek5xf 8 місяців тому

      ​@@andrewhamelcodes Can you show how to make this boiler plate in start like explain this starting code.

  • @holographicSquid
    @holographicSquid Рік тому +6

    Such a lovely video

  • @williamgill624
    @williamgill624 6 місяців тому +1

    Incredible video and love the explanations of your entire thought process. One of the best programming videos I've ever seen.

  • @omniscient1059
    @omniscient1059 Рік тому +8

    Nice

  • @angelpena3297
    @angelpena3297 Рік тому +4

    great video

  • @0xff_1337
    @0xff_1337 8 місяців тому

    This is awesome!
    May I upload my version of the game to my Github account?

    • @andrewhamelcodes
      @andrewhamelcodes  8 місяців тому

      I have no ownership over what you create when you watch these videos: share away!

  • @preoalex8298
    @preoalex8298 Рік тому +2

    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.

    • @andrewhamel1
      @andrewhamel1 Рік тому +1

      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.

  • @sergesolkatt
    @sergesolkatt Рік тому +1

  • @NamelessName_Name
    @NamelessName_Name Рік тому

    Can i ask if why you did not make this game using class?

    • @andrewhamelcodes
      @andrewhamelcodes  Рік тому +3

      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.

  • @energy-tunes
    @energy-tunes Рік тому

    7:39 my nigga really used word interpreter for c programming

    • @andrewhamel1
      @andrewhamel1 Рік тому +3

      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.