I hope you took away lots from this video. Let me know below! PS: I created course named "Object Oriented Programming Made Easy"! Sign up at programmingwithnick.com/course. Enroll now and a 50% launch discount. The discount ends in a few days.
Just one minor thing. Within the game loop, you created 3 sections: 1. Event Handling, 2. Updating Positions and 3. Drawing. You typed code for sections 1 & 3 but nothing in 2. For totally beginners who this is aimed at could be left what should have been added there, when in fact the object position is within section 3, Drawing. Otherwise good getting started raylib tutorial. Not many of these about!
What if I don't want to use your template from you repository. How do you setup everything? Let's say I've installed raylib in my directory C: aylib, then what now?
The RayLib is more interesting with this that it is full 3D, not only 2D like the popular SFML and SDL. So, 3D tutorials about RayLib have more sense!!!
If you are in Windows you have to make sure the environmental variables is set for your include directory with the windows terminal or the ide you use. On Linux make sure you copy the includes into the /usr/include/ directory the files "raylib.h" and "raymath.h"
Great material, few comments: the color green is a constant, 3 should be replaced with a speed constant, 20 is a "magic number" too, with the presented key handling you are not able to go on diagonal
with gcc? gcc -Wall -o "%e" "%f" -lraylib See I put -lraylib "%e" "%f" and got those error messages... I hope that helps I had the same problem and scratched my head, wtf...
You need to create an invisible rectangle around the button/word you want to click on. Get the mouse position as a vector and then check if mouse click is released while the mouse position is within the collision of the invisible rectangle On break at work, so speed typed this. I am a beginner as well
I hope you took away lots from this video. Let me know below!
PS: I created course named "Object Oriented Programming Made Easy"! Sign up at programmingwithnick.com/course. Enroll now and a 50% launch discount. The discount ends in a few days.
I find your voice and teaching style very soothing. What a superpower! Thanks Nick.
no kidding THE BEST EXPLAINATIONS AND PERFECT PACE of teaching
Thats why I subbed and im paying money per month to this guy
finally I was able to use raylib with c++, thanks!
Just one minor thing. Within the game loop, you created 3 sections: 1. Event Handling, 2. Updating Positions and 3. Drawing. You typed code for sections 1 & 3 but nothing in 2. For totally beginners who this is aimed at could be left what should have been added there, when in fact the object position is within section 3, Drawing. Otherwise good getting started raylib tutorial. Not many of these about!
Thanks, great tutorial. Everything is well presented. Raylib basics and introduction to game development. This is beautiful!
We kinda wanna know how to set it up not how to download your template.
Thank you, your teaching is superb!
your youtube channal is awesome!
Thank you for sharing your knowledge
What if I don't want to use your template from you repository. How do you setup everything? Let's say I've installed raylib in my directory C:
aylib, then what now?
Did you find out how?
The RayLib is more interesting with this that it is full 3D, not only 2D like the popular SFML and SDL. So, 3D tutorials about RayLib have more sense!!!
It says "fatal error: raylib.h: No such file or directory" when I run it with mingw g++ instead of f5
Raylib is beautiful.
thanks, dont stop,
Thanks, teacher.
I get this error: fatal error: raylib.h: No such file or directory
same, can anyone give us the solution?
If you are in Windows you have to make sure the environmental variables is set for your include directory with the windows terminal or the ide you use.
On Linux make sure you copy the includes into the /usr/include/ directory the files "raylib.h" and "raymath.h"
Use the template and it should work I got the same error at the start
@@ahmaddafasalam5615 I solved it a while ago, but I think I just deleted all my settings in vscode and it fixed the issue
how to open the template project using visual studio, please? (not visual studio code)
thanks! :)
Yes! C++ thumbs up.
Great material, few comments: the color green is a constant, 3 should be replaced with a speed constant, 20 is a "magic number" too, with the presented key handling you are not able to go on diagonal
What about creating a basic desktop tool with some UI widgets? 😅
GREAT!
are the steps different if you are on a mac?
I just get a bunch of undefined references.
with gcc? gcc -Wall -o "%e" "%f" -lraylib
See I put -lraylib "%e" "%f" and got those error messages... I hope that helps I had the same problem and scratched my head, wtf...
Thank you
Well Do any one know how can we make a menu screen where we can either select with keyboard or with mouse
You need to create an invisible rectangle around the button/word you want to click on. Get the mouse position as a vector and then check if mouse click is released while the mouse position is within the collision of the invisible rectangle
On break at work, so speed typed this. I am a beginner as well
so what happens if the ball stays still
The loop will still run, printing the still ball 60 times per second!
thx
Bro, please marry me. Thanks for the tutorial 😘
I am taken
@@programmingwithnick Haha thats good for you tho mate
this crap software can't be installed on Macos
cope macboy
use a real operating system, not one only for starbucks social media frapuccino scrolling
get an actual computer
" cannot open source file "raylib.h" " :(
Reinstall the template, then press the fn key which is near the alt key, then f5. then run the code in debug mode which worked for me.