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!
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!!!
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?
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
no kidding THE BEST EXPLAINATIONS AND PERFECT PACE of teaching
Thats why I subbed and im paying money per month to this guy
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
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!
Raylib is beautiful.
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!!!
Thanks, teacher.
thanks, dont stop,
Yes! C++ thumbs up.
It says "fatal error: raylib.h: No such file or directory" when I run it with mingw g++ instead of f5
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?
What about creating a basic desktop tool with some UI widgets? 😅
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
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
how to open the template project using visual studio, please? (not visual studio code)
thanks! :)
thx
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...
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
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" " :(