Getting Started with Raylib - C Tutorial

Поділитися
Вставка
  • Опубліковано 12 вер 2024

КОМЕНТАРІ • 56

  • @alkapandey3715
    @alkapandey3715 2 роки тому +32

    Please continue this series it's amazing... I want to learn from it...

  • @lilboiUK
    @lilboiUK 2 роки тому +8

    Great video, thanks! Well structured and presented. Can't wait to get back from work and start messing around with this. Coming from a C# background it's been difficult learning C so far but I feel this will be a super usefull way to futher my understanding of a procedural language. Looking forward to more of these videos :)

  • @Almethese84
    @Almethese84 Рік тому +7

    This was a fantastic introduction!
    Thanks for the time it must have taken to get this content so polished!
    I really hope you will be able to find the time to continue these videos!!

  • @jarwarren
    @jarwarren 2 роки тому +3

    Your point about hacking together quick wasm projects was spot-on. If you create an emscripten/raylib tutorial I'd love to refer people to it.

  • @Fatih120
    @Fatih120 7 місяців тому

    This is a very kino video, thank you so much for this. Trying to clean off the rust I have and trying to learn something and I really appreciate the intro you've outlined.
    Only note is that I believe with the newer raylib you have to define LoadMusicStream variables with "Music" type like:
    Music music = LoadMusicStream("music.ogg");
    Forgive my lack of vocabulary.

  • @jeremiahgeorge3548
    @jeremiahgeorge3548 2 роки тому +5

    Very interesting library; I came across it recently why searching for a light weight 3D rendering library.
    I am planning to do some few projects with it. It's even a plus for me that it is written in C.

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

    Thanks for making this. I'm on Linux but had already installed raylib on my machine and figured out how to compile projects so I did not need that part. I did need hints/help on where to go from there.

  • @southgonholditdown
    @southgonholditdown 2 роки тому +1

    Waiting for more, this looks really easy and fun

  • @neofox2526
    @neofox2526 Рік тому +7

    for anyone wondering how to create a rectangle using C# raylib you do this Rectangle myRectangle = new Rectangle(10, 20, 30, 40);

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

      I love C#! I use it at work. There will absolutely come a time on this channel when I do a mini-series covering my favourite Raylib bindings and remaking the same project in each one!

  • @aaabbb-gu5pz
    @aaabbb-gu5pz 2 роки тому +3

    Thank you, for this tutorial! Please, continue with the raylib. Show how to draw sphere with nice phong lighting!
    Unfortunately the raylib has no documentation and is so complex for the absolute beginner how the opengl itself is.

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

      Honestly, I did terrible in the one class I took in school on writing 3D rendering 😂 If that's something you're really interested in, Freya Holmer has some of the most entertaining and relevant content on 3D rendering as a whole! Of course, I shouldn't close the door on the possibility.

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

    i learned a lot from you bro thank you so much buddy !!

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

    A bit late to the party here but I want to tell you that this video is great!

  • @manurosales9428
    @manurosales9428 11 місяців тому

    Good video bro, I am learning programming in c greeting from Argentina

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

    MSYS is quite useful for windows, and it even has a ready to use raylib package, among many others, pre-built against and kept up to date with the toolchain.

  • @MarcosCpp
    @MarcosCpp 2 роки тому +3

    Great!

  • @boots_on_the_grounds_of_war
    @boots_on_the_grounds_of_war 4 місяці тому

    You mentioned Lazarus. I'm actually looking to use Raylib to create an IDE similar to VS and Delphi. The guy who made C# made Pascal :) Delphi has Skia.

  • @sisqobmx
    @sisqobmx 3 місяці тому

    Will there be more C raylib tuts/projects? Or can you recommend some other sources?

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

    Loved it

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

    Thank you so much, this was amazingly helpful!

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

    who the hell thought that raylib is a cheeseburger
    great tutorial!

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

    Wow! It works!

  • @leerdoor
    @leerdoor 2 роки тому +1

    Excellent demo, tnxs!

  • @quatricise
    @quatricise 6 місяців тому

    4:11 You'd be surprised how many 3 hour coding streams I have watched lately, most of it being Jonathan Blow writing something I don't even understand.

  • @neilclay5835
    @neilclay5835 4 місяці тому

    It's like Arduino code but for gaming. Nice.

  • @Akas766
    @Akas766 2 роки тому +1

    great. more ....

  • @elsyndur4415
    @elsyndur4415 2 роки тому +2

    "The system cannot find the file specified." Why can't it find it?

    • @andrewhamelcodes712
      @andrewhamelcodes712  2 роки тому +1

      Hmm, I would need to see more of the error! I'd say make sure you have the .c file open that you're trying to run the script on, and if you're using any textures / sounds anything like that, make sure you have the filename AND extension spelled correctly / if they're in a subfolder include the name of the folder and a slash! So if the texture.png or sound.ogg are "next to" main.c, it should be written "texture.png" or "sound.ogg". If they're in a folder called resources, then you should write "resources/texture.png" and so on.
      If these don't work, I'll need more of the errors from the console!

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

    Would you mind sharing the other assets, as it seems you only shared the source code.

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

    I wanted to use raylib with go. This helped me tho. Thanks. (if u dont know raylib is almost the same for go and c)

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

      This is one of the best things about raylib - since it's built in C it's very easy to bridge to other languages and still maintain mostly the same interface! Cool to hear people still interested in Go :)

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

      @@andrewhamelcodes712 Is raylib available for java? I mean i could google it but since im already here...

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

      Raylib has bindings to almost any language. Check out a near-complete list here:
      github.com/raysan5/raylib/blob/master/BINDINGS.md

  • @DevlogBill
    @DevlogBill 7 місяців тому

    Hi Andrew, I am a horrible programmer. Been programming with JavaScript & Python for Django and now learning React with JavaScript for 2 years now. I am interested in deepening my knowledge in programming. How much of a learning curve is it to learn C with Raylib for making simple 2D games as a hobby. When you start your project do you have to create a make file? Also, can you run Raylib on vs-code?

    • @thesergey
      @thesergey 4 місяці тому

      Hi, I found learning quite easy and fast since C is a very simple language, at least in my opinion. You already know most of the stuff if you know JS but you are to learn concepts of low-level languages, e.g. pointers, stack and heap, allocating memory and types. Raylib is just a library where every single function is described in the cheatsheet on their website. They also have a ton of examples that you can learn from, both 2D and 3D. Make is a separate tool that‘s not part of the language but it‘s very convenient to use because the C compiler commands are very long. Once you have a Makefile you only need to type „make“ in the terminal to compile the game. So you can also develop it in VSCode.

    • @DevlogBill
      @DevlogBill 4 місяці тому +1

      @@thesergey I played around with C and C++ using Visual Studio Code. Did the basics of conditionals, fizz-buzz, etc, etc, to get a feel for the language. Found out I didn't like C++. You have to write so much just to express an output. I actually like C because it is simple. BUT i never once made Make files before. BUT it's apart of the learning process.
      I guess I wanted to pick C and make a game as a hobby. Because I hear learning JavaScript as one of your first programming languages can actually harm your growth progress in becoming a good developer.
      Thank you for your reply I think I will go with C and try and make a very small 2D game. Figured if I invest 1 hour per day this should be good enough for making a game. Thank you once again!

    • @thesergey
      @thesergey 4 місяці тому

      @@DevlogBill Great to see that it's still relevant, haha. Good luck:

  • @remaxed7223
    @remaxed7223 6 місяців тому

    i tried to compile on a proyect from scratch but i didn't work

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

    ty!

  • @lyly-uo7vw
    @lyly-uo7vw 8 місяців тому

    Ça parait trop facile mercii mais jai un probleme je trouve que des fichiers .zip ça veut dire je doit faire la configuration manuelement et je ne sais pas comment please help

  • @goaty1208
    @goaty1208 9 місяців тому

    This doesn't work. As soon as I move the template project to a different directory it'll simply refuse to compile. I've been at this for 2 months, but I still haven't fixed this...

    • @andrewhamelcodes712
      @andrewhamelcodes712  9 місяців тому

      The example / template projects provided in raylib's source will have the paths to important resources (like compilers and raylib itself) as relative paths, meaning they have ../../ etc. to find the location. Make sure to replace these with absolute paths based on where you installed those contents, then you can move the folders whereever.

  • @antonjay5755
    @antonjay5755 2 роки тому +1

    Moree

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

    Came across this in my recommendations. I'm just glad you move away from programming in Notepad++ 🤣

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

    Just because something is open source doesn’t means it’s free to use !! Careful! For example QT !
    In our case , raylib is free and open source

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

      Yeah, FOSS doesn't mean Open Source = Free, but rather it's a subset of open source software which IS free. Important to keep in mind

  • @lyly-uo7vw
    @lyly-uo7vw 8 місяців тому

    ca

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

    YOU COULDN'T HAVE JUST SPENT 7 MINUTES ON SLOWLY DESCRIBING A SINGLE FRAME

    • @andrewhamelcodes712
      @andrewhamelcodes712  Рік тому +12

      My goal moving forward is to develop the skills necessary to understand this comment ¯\_(ツ)_/¯

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

    Windows?? buuuuu 👎

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

      Linux users probably don't need to be told how to download a library ;)

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

    Wow this framework is so high level lmao just use pygame at this point

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

      Sure! If you're using Python.. but if you care about performance or prefer to use a compiled language, Raylib is the choice for sure! Also there's some interesting videos on UA-cam comparing the performance of the python binding of raylib and PyGame and Raylib seems to come out on top! And that's just the binding, not even the original C implementation which is sure to run faster than any PyGame.

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

    Muchas gracias mister andrew....