Raylib -- Easiest C/C++ Game Framework -- Now Even Better For Beginners!

Поделиться
HTML-код
  • Опубликовано: 8 янв 2025

Комментарии •

  • @gamefromscratch
    @gamefromscratch  3 месяца назад +5

    Key Links
    gamefromscratch.com/raylib-project-creator/
    -----------------------------------------------------------------------------------------------------------
    *Support* : www.patreon.com/gamefromscratch
    *GameDev News* : gamefromscratch.com
    *GameDev Tutorials* : devga.me
    *Discord* : discord.com/invite/R7tUVbD
    *Twitter* : twitter.com/gamefromscratch
    -----------------------------------------------------------------------------------------------------------

  • @raylibtech
    @raylibtech 3 месяца назад +192

    Hi Mike! Thank you very much for this great review! And thanks for pointing those issues, the tools has just been released and it still requires some testing and tweaks! I'll review it as soon as possible! 👍😄

    • @buggg5750
      @buggg5750 3 месяца назад +9

      ray the goat

  • @batty251
    @batty251 3 месяца назад +36

    For people getting into C++ and making their own games would really give them a leg up on creating something.

  • @addcoding8150
    @addcoding8150 3 месяца назад +40

    3:23 CI/CD - Continuous Improvement / Continuous Development
    I wish man...

  • @Qohist
    @Qohist 3 месяца назад +37

    Dude did NOT want to say FreeBSD and awake our people

    • @brahillms1374
      @brahillms1374 3 месяца назад +1

      ONE OF US! ONE OF US!

    • @TayoEXE
      @TayoEXE 3 месяца назад +1

      I have a lack of context for this comment.

    • @Eren_Yeager_is_the_GOAT
      @Eren_Yeager_is_the_GOAT 3 месяца назад

      FreeBASED

    • @ErikOnNoobTube
      @ErikOnNoobTube 3 месяца назад +2

      @@TayoEXE a hint, it starts at 00:20

    • @arma5166
      @arma5166 2 месяца назад

      ​@brahillms1374 I honestly feel it is superior to anything out there. Really most BSDs. It is something to be experienced

  • @safebox36
    @safebox36 3 месяца назад +11

    Finally!
    It was always a pain for me trying to figure out how to create a new Raylib project and set everything up.
    Even the templates were a bit vague on stuff.

    • @chry003
      @chry003 3 месяца назад

      I created a build system in C, and some pre-configured script I just copy and paste it..

  • @sisqobmx
    @sisqobmx 3 месяца назад +4

    as much as i want to love raylib as a beginner, there are no extensive tutorials for it. Why hasnt anyone made a long project with it?

  • @caimin6425
    @caimin6425 3 месяца назад +2

    Love raylib thanks for introducing me to it. It’s is a very nice way to get in some low level language work without building something I’m not interested in.

    • @dv_interval42
      @dv_interval42 3 месяца назад

      This is probably the best use case of this. Anything more in the game-space you start wanting a more full fledged solution.

  • @CallousCoder
    @CallousCoder 3 месяца назад +1

    Last month I wrote my first little arcade shooter with Zig and RayLib and I had so much fun! Zig and RayLib are like cola and rum 🍹 the mix so well.

    • @matthewb192
      @matthewb192 2 месяца назад

      Does zig make it alot easier to build for different platforms? The one thing that puts me off C and C++ is the absolute rubbish build systems.

    • @CallousCoder
      @CallousCoder 2 месяца назад +1

      @@matthewb192 Yes it does! very much so! You can even compile even cross compile right on your system (assuming you have the external libs like raylib for that target cpu and platform). Frankly I have not yet done that just took my source and compile it there. Have had no issues so far with RayLib and zig

  • @rajshashank202
    @rajshashank202 3 месяца назад +64

    bruh these bots are so fast, they are even faster then RUclips fucking itself.

    • @gamefromscratch
      @gamefromscratch  3 месяца назад +77

      What bots? You mean my viewers don't talk about how they surprise their spouses in new and exciting ways?

    • @Miruoart
      @Miruoart 3 месяца назад +3

      Yeah sometimes I leave a comment thats completely irrelevant to let the algorithm promote. Its basically tipping

    • @rajshashank202
      @rajshashank202 3 месяца назад +7

      @@gamefromscratch lmao no, I meant the only fans bots with explicit pfp saying random nonsense.

    • @jernaugurgeh451
      @jernaugurgeh451 3 месяца назад +5

      @@rajshashank202 Your comments are always enlightening and entertaining to me, and I always look forward to your wisdom and kindness ❤💘💯 /s

    • @phizc
      @phizc 3 месяца назад +5

      ​@@jernaugurgeh451careful. I was about to report you, but a bot wouldn't have edited their comment 😂.

  • @grimvian
    @grimvian 2 месяца назад +1

    I'm from the time where computers boots in second 40 years ago. In my case it was a BBC Micro with a real Basic with procedures, functions and real inline assembler and funny enough I can still remember some of assembler instructions. Graphics and sounds was instantly ready and the coordinate system have 0,0 in the left lower corner and I'm still wondering why 0,0 now is the top left corner and I as far I know all graphics systems does that now.
    Now I'm in my third year of learning C99 and Raylib gives me the same easy approach of doing stuff. It shines through raylib that raysan have a pedagogical background.

  • @jaydenblah3937
    @jaydenblah3937 2 месяца назад +2

    Please help me out. Why cant i setup raylib in vscode. It keeps giving me an error of raylib.h not found

  • @RenderingUser
    @RenderingUser 3 месяца назад +5

    Raylib is actually great. its super tiny as well. ive used it in combination with bevy ecs with rust, and somehow its 100 times smaller in size when it doesnt use all of bevy for the same results

    • @charlieking7600
      @charlieking7600 3 месяца назад

      In fact, could you describe it more precisely? If that's not a private information, of course.

    • @RenderingUser
      @RenderingUser 3 месяца назад +1

      @@charlieking7600 discuss what exactly?

    • @jaydenblah3937
      @jaydenblah3937 2 месяца назад

      Please help me out. Why cant i setup raylib in vscode. It keeps giving me an error of raylib.h not found

    • @RenderingUser
      @RenderingUser 2 месяца назад +1

      @@charlieking7600 wdym?

    • @RenderingUser
      @RenderingUser 2 месяца назад +1

      @@jaydenblah3937 not sure. Depends on how exactly you're trying to use raylib. There's probably some documentation telling you how to get raylib working for you

  • @nolram
    @nolram 3 месяца назад +4

    FYI to anyone wanting to use Raylib in C/C++ - it conflicts with default Windows libraries (windows.h), and it also does not support game consoles.

    • @ryonagana
      @ryonagana 3 месяца назад +3

      you need to prepare your project to use multiple renderers if you want to port to console. also need to buy console SDK.

    • @theEnt-1
      @theEnt-1 3 месяца назад

      There are work around for the windows.h issue. You can work with a LLM to help

    • @nolram
      @nolram 3 месяца назад

      @@theEnt-1 The only workaround is manually importing the required functions from the system DLLs, which is immensely tedious. Raysan could have solved this so easily by just adding a prefix as every other C library does.

    • @nolram
      @nolram 3 месяца назад

      @@ryonagana I thought Raylib was hardcoded to OpenGL - is there any documentation of other renderers?

    • @ryonagana
      @ryonagana 3 месяца назад

      @@nolram raylib uses opengl only. you need to develop your own video wrapper. when it calls opengl all calls is from opengl, if changed to d3d, the same calls changes to d3d. and on and on with PS4/PS5 renderer or Nintendo Switch. take a look on quake 2 source code. they created a simple wrapper examples. it runs on solaris and irix

  • @Accelr8r
    @Accelr8r 3 месяца назад +11

    If only SDL was this easy.

    • @KirbySamaDesu
      @KirbySamaDesu 3 месяца назад

      it's not that hard at all, I don't see that much of diference

    • @marwan7614
      @marwan7614 3 месяца назад +1

      @@KirbySamaDesu if you think that sdl2 is no different than raylib, then you probably only used 10% of raylib .

    • @KirbySamaDesu
      @KirbySamaDesu 3 месяца назад +1

      @@marwan7614 if you are looking an easy mode in C, you are doing it wrong better you learn monogame, libgdx, love2d, phaser etc, you are only going to get stuck when things get serious

    • @xelad3362
      @xelad3362 3 месяца назад

      The projects have different design goals. Raylib was specifically designed with beginner programmers in mind. SDL not so much.

    • @cybernit3
      @cybernit3 3 месяца назад +2

      Its too bad raylib doesn't support Vulkan but just OpenGL.

  • @Armitage1982
    @Armitage1982 3 месяца назад +2

    In the OpenFileDialog for Windows documentation, for multiple filtering to work, each file type must be separated by a semicolon “;” whereas here it's a comma "," hence the reason why nothing is displayed (probably).
    That's what I'm afraid of with Raylib. The library is great and concise, but isn't it a little too concise?
    The DPI bug in the GUI is another case in point. Managing screens and resolutions is particularly complex. Just in that respect, in your last video about Godot 4.4 dev2, Samuele Panzeri has just fixed a problem relating to just that.
    Raylib has even created its own installer. If there's one thing that's really complex, it's cooperating with an Operation System. You can never be sure of being future-proof with these things.
    So, for a game jam or a side project, Raylib is undoubtedly ideal, but as a foundation for a game engine or a more complex system, I have some lingering doubts which have yet to be resolved by practice on my side to decide.
    Of course, I could be wrong, and these libraries may be much more solid than I imagine.

    • @gweltazlemartret6760
      @gweltazlemartret6760 3 месяца назад +1

      I'm not sure, but the project manager might require some polish (dpi, semicolon, ..) unrelated to the actual game engine.
      I was about to comment on the semicolon, so here's my like to your comment.

    • @Armitage1982
      @Armitage1982 3 месяца назад +1

      @@gweltazlemartret6760
      Yes, you're right, the author mentions it in another comment. I shouldn't confuse tools fresh out of the oven with a framework that's been supported for years. Also, there are indeed directives about DPI. I will have to evaluate the framework when I have a moment, but with the current fast-moving situations, I tend to look at the signs and the big picture to get an idea.
      It's all a matter of time.

  • @cybernit3
    @cybernit3 3 месяца назад +1

    Yesterday, I experimented with raylib using golang, it works pretty easy and the raylib window opens on my primary monitor. But little concerned about golang since google could spy with telemetry, but by default it is not enabled I think. However, when I build it with regular C, the raylib window opens on my secondary monitor. Does anyone know why raylib opens on secondary instead of primary monitor? BTW I am using Ubuntu 24.04 LTS Gnome 46 DE and have just 2 monitors.

  • @dumbeloop
    @dumbeloop 3 месяца назад

    thank you so much for this video! i was searching up for a good raylib video this whole week, i was about to eat my own nails and spit it out on random ppl on the streets, but now i'll be too busy with my C project to start my furious riot >:D

  • @Baekstrom
    @Baekstrom 3 месяца назад +2

    Did I catch it right that it creates a Visual Studio solution file that internally refers to a Makefile build? In that case I would prefer to simply start with an empty C++ solution made with the Project Wizard, and then drag the source code files into that.

    • @PixelThorn
      @PixelThorn 3 месяца назад

      To each their own

    • @raylibtech
      @raylibtech 3 месяца назад +1

      VSCode tasks call the Makefile but VS2022 is a complete Visual Studio solution, even including the raylib project for convenience.

  • @Lameless
    @Lameless 10 дней назад

    You think I could use raylib for making a game engine?

  • @absaintdane
    @absaintdane 3 месяца назад +1

    I love Raylib and use it with C# alot. Not entirely sure what this new project thing is supposed to benefit. I can already easily use Raylib with VS and bring in the whole library with a button press using NuGet.

    • @buggg5750
      @buggg5750 3 месяца назад +1

      I used raylib as my intro to c++ and game dev stuff, and when I had not used make or cmake, or really set up any projects with multiple files and dependencies. That kind of stuff was pretty frustrating to deal with as a complete beginner, so this looks like a really cool tool to help absolute beginners, and people that don't have any experience setting up a larger project.

    • @absaintdane
      @absaintdane 3 месяца назад

      @@buggg5750 fair enough maybe for C++ it’s different. For C#, it was a single nuget package

  • @RandomGuyyy
    @RandomGuyyy 3 месяца назад +2

    You can't beat vcpkg for raylib on vs.

  • @minutesock9649
    @minutesock9649 3 месяца назад

    Raylib is available for every platform except... ios?

  • @markopoutiainen7108
    @markopoutiainen7108 3 месяца назад +1

    I think the biggest missing thing is GNU Make / CMake support.

    • @PixelThorn
      @PixelThorn 3 месяца назад +2

      It does have CMake support, what are you talking about?

    • @markopoutiainen7108
      @markopoutiainen7108 3 месяца назад +1

      @@PixelThorn Where? That seemed to only create projects for VS and VSCode and some bat file.

    • @PixelThorn
      @PixelThorn 3 месяца назад +1

      @@markopoutiainen7108 oh I see, sorry I misunderstood what we were talking about

    • @raylibtech
      @raylibtech 3 месяца назад

      Makefile is placed in src directory, it's the primary build system I usually use. Also used by VSCode and some of the CI systems.

  • @risayistic4287
    @risayistic4287 3 месяца назад +1

    raylib does not support opengl 2 because of this I can't use it 😢

  • @user-ss4sp1mk5w
    @user-ss4sp1mk5w 3 месяца назад

    Where bundles? That's not a bundle. I need bundles

  • @toddmakesgames
    @toddmakesgames 3 месяца назад +16

    wait! how did you know Bob was my uncle?!

  • @ciscornBIG
    @ciscornBIG 25 дней назад

    It provides zero collision detection.

  • @amduck
    @amduck 3 месяца назад

    raylib rules that is all

  • @ulrich-tonmoy
    @ulrich-tonmoy 3 месяца назад

    But the issue is Monogame is more popular cause of the console builds and Easier Language C# while some people created binding for Raylib but they are not actively updated and feel like 2nd class (like c# in godot which gets feature much later than gdscript) and no console build

    • @igorthelight
      @igorthelight 3 месяца назад

      Fair point!

    • @cybernit3
      @cybernit3 3 месяца назад

      Seems to work with golang and sort of easy; I don't know golang too well, but was able to get it working.

  • @guilherme5094
    @guilherme5094 3 месяца назад

    👍

  • @lehisluguer9300
    @lehisluguer9300 3 месяца назад +6

    Idk man... That setup tool its just a cmake with an interface.. I prefer the old way. But its ok..

    • @notadev9000
      @notadev9000 3 месяца назад +10

      Beginners won't know how to use cmake.

    • @lehisluguer9300
      @lehisluguer9300 3 месяца назад

      ​@@notadev9000agreed

  • @HE360
    @HE360 3 месяца назад

    I'd say Raylib also needs a scene editor

    • @marwan7614
      @marwan7614 3 месяца назад +11

      raylib is not a 2D/3D engine, you use it make an engine.

    • @Digitalgems9000
      @Digitalgems9000 3 месяца назад

      @@marwan7614 LOOOL wat

    • @niggacockball7995
      @niggacockball7995 3 месяца назад

      @@Digitalgems9000 yes it can be used to make engines look up "shape enginge"

  • @Vulto166
    @Vulto166 3 месяца назад +10

    Damn. Programming on windows env looks a pain in the ass. Even with raylib.

    • @Area_GnC
      @Area_GnC 3 месяца назад +3

      Linux is probably better. I think.

    • @PixelThorn
      @PixelThorn 3 месяца назад +10

      ​@@Area_GnCnot probably, it is, no joke, it just works

    • @iWillAvert
      @iWillAvert 3 месяца назад +1

      ​@@Area_GnC Significantly easier. Windows is a MASSIVE pain in the ass to develop on. You are largely limited to Visual Studio or VSCode because of MSVC. MSVC is also a pain point.
      You can use the Windows Subsystem for Linux to get compilers and stuff more easily, but I personally have not figured out how to actually use those compilers on files found strictly within my Windows install. It's a very unintuitive process.
      Meanwhile on Linux, it's as simple as installing the compilers, picking a text editor and build tool of your choosing, and that's basically it.

    • @cybernit3
      @cybernit3 3 месяца назад

      notepad++ seemed to work fine on windows; then I tried it on Ubuntu 24.04 Linux, had to move the raylib to the right directories and the right environment paths; there is a youtube video on this. Just hate that when I try to compile the demo, the raylib windows opens on my secondary monitor not my primary, not sure how to fix this.

  • @Volt-Eye.
    @Volt-Eye. 3 месяца назад +4

    If you double click a Comment , this will like it
    If you click 3 times, this will like and coment.