I made a particle toy in C++ with Raylib

Поділитися
Вставка
  • Опубліковано 26 сер 2024
  • As the title implies, I used the relatively simplistic Raylib library to simulate 100000 particles that are attracted to your mouse cursor.
    Raylib is a nice and simple library for if you just want to play around with programming a bit. Kind of like p5.js but for C/C++.
    www.raylib.com/
    Also if you want my source code, there is a VSCode project directory on my github. It already has the Raylib library, so if you have a working compiler and VSCode setup, you can just open the repo in VSCode and make some changes.
    github.com/cod...

КОМЕНТАРІ • 23

  • @EquaTechnologies
    @EquaTechnologies Рік тому +136

    Mom: My son is going to be a programmer.
    Dad: No, he's going to be an artist.
    The son:

    • @OmarIsmaili-ep9hh
      @OmarIsmaili-ep9hh 5 місяців тому

      i am going to make bills

    • @shfunky
      @shfunky 4 місяці тому

      what is so weird about it? generative art is totally a thing. people make lots of beautiful artwork with nothing but code and math

  • @kinershah464
    @kinershah464 6 місяців тому +4

    Nice one. Looks really cool. Always wanted to try raylib. This video gives me motivation.

  • @snesmocha
    @snesmocha 2 роки тому +34

    this is actually really cool, been starting to learn raylib with c++, maybe you could do some raylib tutorials

    • @CodeMaker4
      @CodeMaker4  2 роки тому +8

      Thanks! I am not really good enough yet to confidently make tutorials for c++ or raylib, but what I can tell you is that you will learn a lot from looking at and tweaking the examples on raylibs website.

    • @snesmocha
      @snesmocha 2 роки тому +1

      @@CodeMaker4 alr, still cool stuff none the less, im just starting out and am trying to make an rpg text engine

  • @ProBloggerWorld
    @ProBloggerWorld 2 роки тому +4

    One word: beautiful! 😍

  • @1..1..1..1H
    @1..1..1..1H 5 місяців тому

    What! that's actually insane lmao, also "simple"

  • @smanzoli
    @smanzoli Рік тому +4

    Raylib is not only for C/C++, it has bindings to more than 40 languages, including js (as P5). I use it with Python, very comparable to Pygame.

  • @HikeYegiyan
    @HikeYegiyan 2 роки тому

    Wow, that's really cool!

  • @pacocarolha8257
    @pacocarolha8257 10 місяців тому

    Nice job!

  • @MaskMCD
    @MaskMCD 5 місяців тому

    have you tried to do some Boids algorithm on this would look good like a flock simulator

  • @MHanak30
    @MHanak30 6 місяців тому +2

    Man i have trouble getting 30 fps on a 100x100 pixel based sand/fluid simulation
    (Granted i only ran it on an intel i3)

    • @CodeMaker4
      @CodeMaker4  6 місяців тому +1

      Yea, I did not optimize this, and it is basically 100% CPU, no GPU optimizations.

  • @KevinExizt
    @KevinExizt 6 місяців тому +1

    Is it possible to have this on a web page?

    • @CodeMaker4
      @CodeMaker4  6 місяців тому +1

      No, not easily at least.
      You would have to translate this to Javascript or WebGL, which is not trivial. JS would be much slower, but WebGL could be faster because then it can make use of the GPU.
      Or maybe try out compiling this to webassembly. I've heared good things about it, but idk how it works.

  • @whitegroyper
    @whitegroyper 6 місяців тому

    rip pc

  • @swedishpsychopath8795
    @swedishpsychopath8795 8 місяців тому +4

    This won't work - too symmetric. Try freeing up your binding to conventions and post again?

    • @dzidmail
      @dzidmail 6 місяців тому +7

      ​@tehjoy on android, when when next video starts playing while writing a comment, it will post it in the next video.
      At least in some circumstances.
      More concerning are the 3 likes. 🤷‍♂️

    • @PinkeySuavo
      @PinkeySuavo 5 місяців тому

      @@dzidmailI love internet