Getting Started with Raylib - C Tutorial

  Рет қаралды 66,159

Andrew Hamel Codes

Andrew Hamel Codes

Күн бұрын

Пікірлер: 58
@alkapandey3715
@alkapandey3715 2 жыл бұрын
Please continue this series it's amazing... I want to learn from it...
@Almethese84
@Almethese84 2 жыл бұрын
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 жыл бұрын
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 :)
@jarwarren
@jarwarren 2 жыл бұрын
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 Жыл бұрын
A bit late to the party here but I want to tell you that this video is great!
@jeremiahgeorge3548
@jeremiahgeorge3548 2 жыл бұрын
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.
@southgonholditdown
@southgonholditdown 2 жыл бұрын
Waiting for more, this looks really easy and fun
@Fatih120
@Fatih120 11 ай бұрын
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.
@neofox2526
@neofox2526 2 жыл бұрын
for anyone wondering how to create a rectangle using C# raylib you do this Rectangle myRectangle = new Rectangle(10, 20, 30, 40);
@andrewhamelcodes
@andrewhamelcodes Жыл бұрын
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!
@SlyPearTree
@SlyPearTree Жыл бұрын
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.
@ianemmanuelpalabrica5365
@ianemmanuelpalabrica5365 2 жыл бұрын
i learned a lot from you bro thank you so much buddy !!
@theonewithoutidentity
@theonewithoutidentity 10 ай бұрын
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.
@aaabbb-gu5pz
@aaabbb-gu5pz 2 жыл бұрын
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.
@andrewhamelcodes
@andrewhamelcodes Жыл бұрын
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.
@kellybmackenzie
@kellybmackenzie Жыл бұрын
Thank you so much, this was amazingly helpful!
@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.
@manurosales9428
@manurosales9428 Жыл бұрын
Good video bro, I am learning programming in c greeting from Argentina
@leerdoor
@leerdoor 2 жыл бұрын
Excellent demo, tnxs!
@boots_on_the_grounds_of_war
@boots_on_the_grounds_of_war 8 ай бұрын
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.
@eitanbil
@eitanbil Жыл бұрын
who the hell thought that raylib is a cheeseburger great tutorial!
@sisqobmx
@sisqobmx 7 ай бұрын
Will there be more C raylib tuts/projects? Or can you recommend some other sources?
@danielrodrigoalegriasallo6479
@danielrodrigoalegriasallo6479 2 жыл бұрын
Loved it
@EquaTechnologies
@EquaTechnologies Жыл бұрын
Wow! It works!
@MarcosCpp
@MarcosCpp 2 жыл бұрын
Great!
@zooidiotgaming5784
@zooidiotgaming5784 Жыл бұрын
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)
@andrewhamelcodes
@andrewhamelcodes Жыл бұрын
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 Жыл бұрын
@@andrewhamelcodes Is raylib available for java? I mean i could google it but since im already here...
@andrewhamelcodes
@andrewhamelcodes Жыл бұрын
Raylib has bindings to almost any language. Check out a near-complete list here: github.com/raysan5/raylib/blob/master/BINDINGS.md
@lyly-uo7vw
@lyly-uo7vw Жыл бұрын
Ç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
@remaxed7223
@remaxed7223 11 ай бұрын
i tried to compile on a proyect from scratch but i didn't work
@elsyndur4415
@elsyndur4415 2 жыл бұрын
"The system cannot find the file specified." Why can't it find it?
@andrewhamelcodes
@andrewhamelcodes 2 жыл бұрын
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!
@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...
@andrewhamelcodes
@andrewhamelcodes Жыл бұрын
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.
@neilclay5835
@neilclay5835 8 ай бұрын
It's like Arduino code but for gaming. Nice.
@DevlogBill
@DevlogBill 11 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
@@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 8 ай бұрын
@@DevlogBill Great to see that it's still relevant, haha. Good luck:
@Akas766
@Akas766 2 жыл бұрын
great. more ....
@littlecurrybread
@littlecurrybread Жыл бұрын
ty!
@kplays_6000
@kplays_6000 Жыл бұрын
Came across this in my recommendations. I'm just glad you move away from programming in Notepad++ 🤣
@andrewhamelcodes
@andrewhamelcodes Жыл бұрын
Haha it's a great app for sure, maybe not for programming 🤣
@antonjay5755
@antonjay5755 2 жыл бұрын
Moree
@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
@andrewhamelcodes
@andrewhamelcodes Жыл бұрын
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
@StellarHarbour
@StellarHarbour Ай бұрын
Why useful channels always die :/
@andrewhamelcodes
@andrewhamelcodes Ай бұрын
I feel this
@lyly-uo7vw
@lyly-uo7vw Жыл бұрын
ca
@vadiks20032
@vadiks20032 Жыл бұрын
YOU COULDN'T HAVE JUST SPENT 7 MINUTES ON SLOWLY DESCRIBING A SINGLE FRAME
@andrewhamelcodes
@andrewhamelcodes Жыл бұрын
My goal moving forward is to develop the skills necessary to understand this comment ¯\_(ツ)_/¯
@josbexerra8115
@josbexerra8115 Жыл бұрын
Muchas gracias mister andrew....
@energy-tunes
@energy-tunes Жыл бұрын
Wow this framework is so high level lmao just use pygame at this point
@andrewhamelcodes
@andrewhamelcodes Жыл бұрын
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 KZbin 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.
@PublicDomainWorld
@PublicDomainWorld Жыл бұрын
Windows?? buuuuu 👎
@andrewhamelcodes
@andrewhamelcodes Жыл бұрын
Linux users probably don't need to be told how to download a library ;)
Unlocking VSCode's power to make GAMES in C
18:49
Andrew Hamel Codes
Рет қаралды 27 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
zig will change programming forever
9:34
Low Level
Рет қаралды 380 М.
Learning GameDev with Raylib in C: 2D Racing Game - Part 1
1:00:00
Unconventional Coding
Рет қаралды 4 М.
Can I Learn Raylib In Just 48 Hours?
1:29:46
ForlornU
Рет қаралды 2,2 М.
Creating a window - Software from Scratch
1:04:12
Muukid
Рет қаралды 179 М.
Introducing Clay - High Performance UI Layout in C
35:19
Nic Barker
Рет қаралды 218 М.
This Release is Crazy!!
1:44:28
Tsoding Daily
Рет қаралды 59 М.
Should I have used Unity instead of Raylib for my Indie game?
10:11
Lingon Studios
Рет қаралды 41 М.
you will never ask about pointers again after watching this video
8:03