raylib -- A C++ Game Library That's Perfect For Beginners

  Рет қаралды 24,786

Gamefromscratch

Gamefromscratch

Күн бұрын

Пікірлер: 45
@conceptualize5531
@conceptualize5531 7 ай бұрын
7 years later and this vid still helping people, apprecaite you.
@raystamp5
@raystamp5 8 жыл бұрын
Hi Mike, great review! Thank you very much! Seeing the review I noticed I have to update a couple of things... ;)
@jak0816
@jak0816 4 жыл бұрын
thanks so much i just spent 2 hours mucking around with sdl libraries in eclipse and now i click 1 install button and i can start programming
@edwardangelesmedina2919
@edwardangelesmedina2919 8 жыл бұрын
I wanted to learn C with a game library a few weeks ago, but the solutions out there were too complicated for me. I'm definitely checking this out!
@firstname4337
@firstname4337 8 жыл бұрын
SDL is also C library most of the tutorials you'll find are written in C++, but the API is C its interesting raylib is using GLFW 3 (the newest version) -- that's good so it might be easy to port to linux or iOS
@raystamp5
@raystamp5 8 жыл бұрын
Actually raylib works in Windows, Linux, OSX, RaspberryPi, Android, HTML5 (Web) and Oculus Rift but the installer and tools are just for Windows. It's a C library with minimum dependencies, it can easily run in almost any platform.
@kopuz.co.uk.
@kopuz.co.uk. 7 жыл бұрын
Hey mac/windows user: you named Linux then named a bunch of Linux operating systems....
@MrAlbinopapa
@MrAlbinopapa 6 жыл бұрын
While I can't tell you what 80-90% of what the features Visual Studio do, I can say I enjoy having a complete experience in one program; such as editing, creating classes and compiling. There wasn't a huge learning curve to be honest. I'm sure you can find a crap ton of tutorials on how to use an IDE. I do use N++ for things like Lua scripts, but one of the features I've come to rely a lot on in VS is intellisense. It helps prevent typos, most syntax errors and other things N++ or any other plain text editor won't do. I can step through he code line by line to debug and so on. As to your comment about learning about the linker and such before starting to make games...that's a load of crap. Check out chilitomatonoodle's channel, He'll get you up and running learning C++ and making simple games, teaching some math and even a little computer science ( albeit very introductory ). One of the things that scared me about starting C/C++ was the command line entry to compile a program. I thought "man, I have to write this long ass line every time I want to compile my program, forget that". VS takes care of all that for you. Oh, and C sucks. Not really, just trolling. I hate C for a few reasons that mostly have to do with being spoiled by C++; namespaces, function and operator overloading, RAII, classes, references, move semantics and copy elision just to name a few. I've tried making a few things in C, while it is pretty similar, names become longer with the lack of namespaces and classes. Explicit function naming and calling for each variant was a pain. Having to remember and keep track of memory ownership, allocation and deallocations: RAII and move semantics are way better than garbage collector or manually tracking ownership. Return by value with copy elision is so much nicer than having to creating an object and using in/out parameters. And having to create functions named: vec3f_add, vec3f_sub, vec2f_add, vec2f_sub is ridiculous. It feels more intuitive to use + or - for add or subtract. TL'DR: Don't scare people when they don't need to be. Yes, N++ is a text editor that has some formatting for programming languages, but it is not a compiler. You still need the MinGW to make it work, so why not take a little extra time and learn Visual Studio or ANY other Integrated Development Editor ( IDE ) and make your life much more simple. For those that want to experience the speed of C with the flexibility of C++, use SFML. It's written in C++ (C++03 so doesn't have all the newest C++ features ) and has window creation, font rendering, compatibility with native OpenGL calls, 2D sprite and text rendering, audio and networking. Peace.
@muralkz
@muralkz 7 жыл бұрын
you can reset the default installation path by changing some value in register in windows
@Anubis10110
@Anubis10110 3 жыл бұрын
Epic, Thank you so much. That was really neat and straight forward.
@lampion22
@lampion22 3 жыл бұрын
don't know if anyone will reply, but my autocomplete on notepad++ for the current version of raylib doesn't work. any idea what the solution is?
@blendjams
@blendjams 4 жыл бұрын
How do i set this up with c++?
@CCV334
@CCV334 8 жыл бұрын
This looks like exactly what I need! On a side note, I found this javascript library for making games that I'd like your input on. It's called p5.play
@joshodom9046
@joshodom9046 7 жыл бұрын
"I wish this was an optional parameter" -- but C doesn't support optional parameters
@TheGabrielMoon
@TheGabrielMoon 8 жыл бұрын
Amazing library to work with C lang
@matthew4030
@matthew4030 8 жыл бұрын
Really neat!!! might have to might have to do something with this on my PI.. I'm still a fan of SFML :P
@roberttrinity524
@roberttrinity524 7 жыл бұрын
PLEASE HELP, if i run the program once, i would not run again and say ACCESS IS DENIED but it runs the first time
@XxxGuitarMadnessxxX
@XxxGuitarMadnessxxX 5 жыл бұрын
Granted it's a year late, but typically that's a security read/write access for the program. Probs why he adamantly stated he hates things default installing to the C: drive, it's basically your OS drive for the most part and has security features to protect exe files from changing things in the dir. You can bypass it by granting administrative rights to the folder/program of you're an admin on the computer in the properties tab when you right click the folder/.exe or just move everything and anything it references out of the c: drive and I believe that will work too. First advice for sure though second one, pretty sure but not entirely
@andreasteucke3090
@andreasteucke3090 8 жыл бұрын
Does n++ in raylib have a syntax checker?
@raystamp5
@raystamp5 8 жыл бұрын
Notepad++ for raylib has been specifically prepared with syntax check and raylib functions intellisense. Notepad++ for raylb also comes with a set of predefined scripts to compile for multiple platforms and recompile source code in multiple flavours.
@skullkil
@skullkil 8 жыл бұрын
is this any good for actual production? also why is ios and mac missing?
@raystamp5
@raystamp5 8 жыл бұрын
raylib is primary intended for learning. I really believe it could be used for production but there is no commercial game in the market yet. Nowadays developing professionally in plain C is too spartan... but not impossible...
@openroomxyz
@openroomxyz 3 жыл бұрын
Do you still recommend it?
@fabiancisneros3007
@fabiancisneros3007 3 жыл бұрын
Thanks a lot man!
@jackspin7102
@jackspin7102 8 жыл бұрын
It looks like libgdx for C++
@greenheart5334
@greenheart5334 8 жыл бұрын
java > c++ and therefore libgdx > raylib :)
@noxabellus
@noxabellus 7 жыл бұрын
lmao what fucking alternate universe bizzaro world are you from Green Heart?
@overflwn3214
@overflwn3214 7 жыл бұрын
noxabellus to be honest Java is easy to get into and a very good language to begin with learning to program. I started with LUA, got to Java after that and then started to learn python, c# and a bit of c++. In the end it just depends on the user. (I for example like how c# and java work as object oriented programming languages..)
@noxabellus
@noxabellus 7 жыл бұрын
Oh yes I definitely prefer an object oriented language. I just don't know where greens coming from at all saying that its just objectively better. You have to at least take into account the potential target platforms and what is involved for your end user. In the case of java you have to have a java vm installed on your machine to use a "standalone" java application. I'd say even Javascript is better in that regard. So it's just hard to imagine how you could think it was _objectively better_ rather than just "more comfortable to program with"
@overflwn3214
@overflwn3214 7 жыл бұрын
noxabellus I think in his case it's more like: sure you have to have the vm installed BUT whenever you package your code into a jar, you can expect it to run on most of the platforms without repackaging it. C++ on the other hand has to recompile for every platform you want to put your project on. But yeah as much as I like Java, I have to say that my experience regarding performance is really bad. I realized that Java programs take up way more resources than a compiled version (for example in C++) probably because of the VM
@firstname4337
@firstname4337 8 жыл бұрын
go ahead and hit F6 BOOM ha ha ha you have a loud keyboard
@gamefromscratch
@gamefromscratch 8 жыл бұрын
I just use an Apple chicklet style keyboard... it's the location relative to the mic and the... let's say... force with which I hit the key :)
@Person-hb3dv
@Person-hb3dv 4 жыл бұрын
lol
@epiceditiongames4677
@epiceditiongames4677 8 жыл бұрын
Lol gotta hit that ctrl+s after every line
@luiza4142
@luiza4142 8 жыл бұрын
what language i use c++ || c# for create a game?
@gamefromscratch
@gamefromscratch 8 жыл бұрын
I'm not sure I follow. It's written in C if that's what you are asking.
@jsonkody
@jsonkody 5 жыл бұрын
It C library .. not C++
@XxxGuitarMadnessxxX
@XxxGuitarMadnessxxX 5 жыл бұрын
He corrected himself lol but regardless it has bindings for several languages so it can be used in multiple languages, it's just written in c
@hbiblia
@hbiblia 4 жыл бұрын
C
@ThaerRazeq
@ThaerRazeq 8 жыл бұрын
Hmmm. No RAII? unloading a texture for a non-pointer object should happen automatically. Bad, design.
@ThaerRazeq
@ThaerRazeq 8 жыл бұрын
I mean using its destructor at the end of scope.
@zerodarkzone
@zerodarkzone 8 жыл бұрын
This engine has a really good design. The engine is made with C. C has no constructors nor destructors so you cannot use RAII. If you want to use C++ features then you could make a wrapper to encapsulate the functions and the C structs together.
Raylib Game Development Tools -- Work With Any Game Engine!
11:54
Gamefromscratch
Рет қаралды 38 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
RayLib 5 Released - The Easiest C/C++ Game Library Just Got Even Better
10:42
Raylib Game Loop Basics
15:13
GameDevTutorials
Рет қаралды 9 М.
GameDev Beginner Games  -- Where To Start and Why
19:35
Gamefromscratch
Рет қаралды 53 М.
Learning GameDev with Raylib in C: 2D Racing Game - Part 1
1:00:00
Unconventional Coding
Рет қаралды 4 М.
A brief introduction to Raylib
11:40
SkyVaultGames
Рет қаралды 14 М.
Антон Полухин - Грязные C++ трюки из userver и Boost
1:00:00
C++ Russia — Конференция по разработке на Cpp
Рет қаралды 6 М.
Making a C++ Game with No Experience!
5:51
Barji
Рет қаралды 784 М.
Getting Started with Raylib - C Tutorial
30:34
Andrew Hamel Codes
Рет қаралды 66 М.
Making a Game With C++ and SDL2
5:34
Goodgis
Рет қаралды 671 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН