Getting Started with Raylib - C Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ธ.ค. 2024

ความคิดเห็น • 58

  • @alkapandey3715
    @alkapandey3715 2 ปีที่แล้ว +32

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

  • @Almethese84
    @Almethese84 2 ปีที่แล้ว +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!!

  • @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 :)

  • @neofox2526
    @neofox2526 2 ปีที่แล้ว +10

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

    • @andrewhamelcodes712
      @andrewhamelcodes712  ปีที่แล้ว +4

      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!

  • @southgonholditdown
    @southgonholditdown 2 ปีที่แล้ว +1

    Waiting for more, this looks really easy and fun

  • @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.

  • @Gale42
    @Gale42 11 หลายเดือนก่อน

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

  • @ianemmanuelpalabrica5365
    @ianemmanuelpalabrica5365 ปีที่แล้ว +2

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

  • @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.

  • @kellybmackenzie
    @kellybmackenzie ปีที่แล้ว

    Thank you so much, this was amazingly helpful!

  • @Fatih120
    @Fatih120 10 หลายเดือนก่อน

    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.

  • @theonewithoutidentity
    @theonewithoutidentity 9 หลายเดือนก่อน +1

    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.

  • @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.

  • @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.

  • @leerdoor
    @leerdoor 2 ปีที่แล้ว +1

    Excellent demo, tnxs!

  • @manurosales9428
    @manurosales9428 ปีที่แล้ว

    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.

  • @eitanbil
    @eitanbil ปีที่แล้ว

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

  • @boots_on_the_grounds_of_war
    @boots_on_the_grounds_of_war 7 หลายเดือนก่อน

    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.

  • @MarcosCpp
    @MarcosCpp 2 ปีที่แล้ว +3

    Great!

  • @danielrodrigoalegriasallo6479
    @danielrodrigoalegriasallo6479 ปีที่แล้ว +2

    Loved it

  • @sisqobmx
    @sisqobmx 6 หลายเดือนก่อน

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

  • @EquaTechnologies
    @EquaTechnologies ปีที่แล้ว +1

    Wow! It works!

  • @lyly-uo7vw
    @lyly-uo7vw 11 หลายเดือนก่อน

    Ç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

  • @zooidiotgaming5784
    @zooidiotgaming5784 11 หลายเดือนก่อน

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

  • @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!

  • @remaxed7223
    @remaxed7223 10 หลายเดือนก่อน

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

  • @Akas766
    @Akas766 2 ปีที่แล้ว +1

    great. more ....

  • @josbexerra8115
    @josbexerra8115 11 หลายเดือนก่อน

    Muchas gracias mister andrew....

  • @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 10 หลายเดือนก่อน

    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 7 หลายเดือนก่อน

      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 7 หลายเดือนก่อน +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 7 หลายเดือนก่อน

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

  • @neilclay5835
    @neilclay5835 7 หลายเดือนก่อน

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

  • @littlecurrybread
    @littlecurrybread 11 หลายเดือนก่อน

    ty!

  • @goaty1208
    @goaty1208 ปีที่แล้ว

    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  ปีที่แล้ว

      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++ 🤣

    • @andrewhamelcodes712
      @andrewhamelcodes712  ปีที่แล้ว

      Haha it's a great app for sure, maybe not for programming 🤣

  • @StellarHarbor
    @StellarHarbor 26 วันที่ผ่านมา +1

    Why useful channels always die :/

  • @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 11 หลายเดือนก่อน

    ca

  • @vadiks20032
    @vadiks20032 ปีที่แล้ว

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

    • @andrewhamelcodes712
      @andrewhamelcodes712  ปีที่แล้ว +13

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

  • @PublicDomainWorld
    @PublicDomainWorld ปีที่แล้ว

    Windows?? buuuuu 👎

    • @andrewhamelcodes712
      @andrewhamelcodes712  ปีที่แล้ว +7

      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  ปีที่แล้ว +7

      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 TH-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.